Ah, yes. I forgot all about that one. It probably will do the trick.
Thanks, Matt.

-----Original Message-----
From: Matt Benson [mailto:[EMAIL PROTECTED] 
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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to