summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--java/config/common.opt.xml38
-rw-r--r--java/config/common.xml9
2 files changed, 47 insertions, 0 deletions
diff --git a/java/config/common.opt.xml b/java/config/common.opt.xml
new file mode 100644
index 00000000000..a6e43c89d25
--- /dev/null
+++ b/java/config/common.opt.xml
@@ -0,0 +1,38 @@
+<!--
+ **********************************************************************
+
+ Copyright (c) 2003-2005 ZeroC, Inc. All rights reserved.
+
+ This copy of Ice is licensed to you under the terms described in the
+ ICE_LICENSE file included in this distribution.
+
+ **********************************************************************
+-->
+<project name="common_opt" basedir="." default="...">
+ <property environment="env"/>
+
+ <dirname property="common_opt.basedir" file="${ant.file.common_opt}" />
+
+ <fail message="ICE_HOME is not set to a valid directory">
+ <condition>
+ <not>
+ <available file="${env.ICE_HOME}/lib" />
+ </not>
+ </condition>
+ </fail>
+
+ <property name="lib.dir" value="${env.ICE_HOME}/lib" />
+
+
+ <property name="slice.dir" value="${env.ICE_HOME}/slice"/>
+ <taskdef name="slice2java" classpath="${env.ICE_HOME}/ant" classname="Slice2JavaTask"/>
+ <taskdef name="slice2freezej" classpath="${env.ICE_HOME}/ant" classname="Slice2FreezeJTask" />
+
+ <!-- Ice classpath -->
+ <path id="ice.classpath">
+ <fileset dir="${lib.dir}">
+ <include name="*.jar"/>
+ </fileset>
+ </path>
+
+</project>
diff --git a/java/config/common.xml b/java/config/common.xml
index 0654358be90..1e9afad4aff 100644
--- a/java/config/common.xml
+++ b/java/config/common.xml
@@ -36,6 +36,15 @@
</not>
</and>
</condition>
+
+ <condition property="installtype" value="opt">
+ <and>
+ <available file="${env.ICE_HOME}/slice" />
+ <not>
+ <isset property="installtype"/>
+ </not>
+ </and>
+ </condition>
<fail message="Unable to detect a valid Ice installtion.">
<condition>