1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
--- build.xml.orig 2004-08-13 11:15:54.000000000 +0200
+++ build.xml 2004-08-13 11:17:49.000000000 +0200
@@ -157,6 +157,10 @@
<echo message="You can download them from http://java.sun.com/products/javamail"/>
</target>
+ <target name="sunssl-present" unless="sunssl.present">
+ <echo message="SUN SSL classes are not present, therefore the SSl support will not be built."/>
+ </target>
+
<target name="jython-present" unless="jython.present">
<echo message="Jython classes are not present, therefore the JythonRunner MBean will not be built."/>
<echo message="You need jython.jar in the MX4J lib directory"/>
@@ -196,6 +200,14 @@
</condition>
<antcall target="javamail-present"/>
+ <!-- SSL flag -->
+ <condition property="sunssl.present">
+ <and>
+ <available classname="com.sun.net.ssl.internal.ssl.Provider" classpathref="lib.classpath"/>
+ </and>
+ </condition>
+ <antcall target="sunssl-present"/>
+
<!-- Jython flag -->
<condition property="jython.present">
<and>
@@ -232,7 +244,7 @@
<mkdir dir="${core.classes.dir}"/>
<mkdir dir="${dist.lib.dir}"/>
- <javac srcdir="${core.src.dir}" destdir="${core.classes.dir}" debug="on" deprecation="on" encoding="US-ASCII">
+ <javac srcdir="${core.src.dir}" destdir="${core.classes.dir}" debug="on" deprecation="on" encoding="US-ASCII" target="1.3">
<patternset refid="mx4j.classes"/>
<classpath refid="lib.classpath"/>
</javac>
@@ -290,6 +302,7 @@
<javac srcdir="${tools.src.dir}" destdir="${tools.classes.dir}" debug="on" deprecation="on" encoding="US-ASCII">
<patternset refid="tools.classes"/>
+ <exclude name="mx4j/tools/adaptor/ssl/**" unless="sunssl.present"/>
<exclude name="mx4j/tools/mail/**" unless="javamail.present"/>
<exclude name="mx4j/tools/jython/**" unless="jython.present"/>
<exclude name="mx4j/tools/remote/**" unless="jaas.present"/>
|