@@ -200,7 +200,17 @@
<target name="probe-rmic">
<available property="kaffe.present" classname="jkaffe.rmi.rmic.RMIC"/>
<available property="rmic.present" classname="sun.rmi.rmic.Main"/>
<condition property="rmic.present">
<or>
<available classname="sun.rmi.rmic.Main"/>
<!-- we'll use forking as default for Java9 -->
<available classname="java.lang.module.ModuleDescriptor"/>
</or>
</condition>
<condition property="rmic.compiler" value="forking">
<available classname="java.lang.module.ModuleDescriptor"/>
</condition>
<property name="rmic.compiler" value="sun"/>
<available property="wlrmic.present" classname="weblogic.rmic"/>
<condition property="rmic6.present">
<and>
@@ -263,24 +273,24 @@
</target>
<target name="testRmic" if="rmic.present" depends="init">
<base-rmic compiler="sun "/>
<base-rmic compiler="${rmic.compiler} "/>
<assertBaseCompiled/>
</target>
<target name="testRmicDest" if="rmic.present" depends="init">
<dest-rmic compiler="sun "/>
<dest-rmic compiler="${rmic.compiler} "/>
<assertBaseCompiledInDest/>
</target>
<target name="testRmicJArg" if="rmic.present" depends="init">
<base-rmic compiler="sun ">
<base-rmic compiler="${rmic.compiler} ">
<compilerarg value="-J-mx256m" />
</base-rmic>
<assertBaseCompiled/>
</target>
<target name="testRmicJArgDest" if="rmic.present" depends="init">
<dest-rmic compiler="sun ">
<dest-rmic compiler="${rmic.compiler} ">
<compilerarg value="-J-mx256m" />
</dest-rmic>
<assertBaseCompiledInDest/>
@@ -322,7 +332,7 @@
<assertBaseCompiled/>
</target>
<target name="testBadName" if="rmic.present" depends="init">
<target name="testBadName" depends="init">
<base-rmic
compiler="no-such-compiler"
/>
@@ -330,12 +340,12 @@
<target name="testExplicitClass" if="rmic.present" depends="init">
<base-rmic
compiler="org.apache.tools.ant.taskdefs.rmic.SunRmic"
compiler="org.apache.tools.ant.taskdefs.rmic.Forking SunRmic"
/>
<assertBaseCompiled/>
</target>
<target name="testWrongClass" if="rmic.present" depends="init">
<target name="testWrongClass" depends="init">
<base-rmic
compiler="org.apache.tools.ant.BuildException"
/>
@@ -389,14 +399,14 @@
<assertAntCompiledInDest/>
</target>
<target name="testForkingAntClasspath" if="rmic.present" depends="compileAntTimestamp">
<target name="testForkingAntClasspath" depends="compileAntTimestamp">
<base-rmic
compiler="forking"
/>
<assertAntCompiled />
</target>
<target name="testForkingAntClasspathDest" if="rmic.present" depends="compileAntTimestamp">
<target name="testForkingAntClasspathDest" depends="compileAntTimestamp">
<dest-rmic
compiler="forking"
/>
@@ -429,14 +439,14 @@
This test stamps on the XML parser settings on java6, so it is disabled.
-->
<target name="testXnew" if="rmic.present" unless="rmic6.present" depends="init">
<base-rmic compiler="sun ">
<base-rmic compiler="${rmic.compiler} ">
<compilerarg value="-Xnew"/>
</base-rmic>
<assertBaseCompiled/>
</target>
<target name="testXnewDest" if="rmic.present" unless="rmic6.present" depends="init">
<dest-rmic compiler="sun ">
<dest-rmic compiler="${rmic.compiler} ">
<compilerarg value="-Xnew"/>
</dest-rmic>
<assertBaseCompiledInDest/>