ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Holt" <jeff.h...@hotsos.com>
Subject java task question for ant 1.6.5
Date Fri, 27 Oct 2006 19:51:58 GMT
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?


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message