ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Holt" <jeff.h...@hotsos.com>
Subject RE: java task question for ant 1.6.5
Date Fri, 27 Oct 2006 20:15:48 GMT
Ah, yes. I forgot all about that one. It probably will do the trick.
Thanks, Matt.

-----Original Message-----
From: Matt Benson [mailto:gudnabrsam@yahoo.com] 
Sent: Friday, October 27, 2006 2:57 PM
To: Ant Users List
Subject: Re: java task question for ant 1.6.5

You might look at using ant-contrib's <for> task with
<java>.

-Matt

--- Jeff Holt <jeff.holt@hotsos.com> wrote:

> 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?
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message