To make my build script a bit less susceptible to environmental errors,
I'd like to rewrite the following task:
<apply executable="${env.JAVA_HOME}/bin/java">
<arg value="-classpath"/>
<arg value="saxon8.jar"/>
<arg value="net.sf.saxon.Compile"/>
<srcfile/>
<targetfile/>
<fileset refid="xsl.compilable.files"/>
<globmapper from="*.xsl" to="*.sxx"/>
</apply>
Here is something that probably conveys what I want:
<java classpath=" saxon8.jar" classname=" net.sf.saxon.Compile">
<srcfile/>
<targetfile/>
<fileset refid="xsl.compilable.files"/>
<globmapper from="*.xsl" to="*.sxx"/>
</java>
The problem is that ant 1.6.5 doesn't accept <srcfile> as a child of
<java>. Does anyone know if I'm wasting my time or is what I want to do
easy?