ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ciramella, E.J." <EJ.Cirame...@workscape.com>
Subject RE: What is the best way to loop in ant?
Date Thu, 14 Nov 2002 16:40:25 GMT
Just in case people are wondering, here's how I looped without foreach:

<apply executable="${path to wrap}" dest="${my dest dir}>
	<arg line="iname="/>
	<srcfile/>
	<arg line="oname="/>
	<targetfile/>
	<fileset dir="${directory with .sql files}" includes="*.sql"/>
	<mapper type="glob" from="*.sql" to="*.plb"/>
<apply>

This loops through the fileset dir specified passing each .sql file to wrap, with the glob
replacing .sql (infile) with .plb (outfile).

If there was a process that would take all these files at once (say wrap could have been passes
a directory), apply has a parallel attribute.

I hope I've solved someone's problems with out using foreach.....

-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@apache.org]
Sent: Thursday, November 14, 2002 2:48 AM
To: ant-user@jakarta.apache.org
Subject: Re: What is the best way to loop in ant?


On Wed, 13 Nov 2002, E. J. Ciramella <EJ.Ciramella@workscape.com>
wrote:

> We need to run the oracle wrap utility, it takes two parameters,
> iname and oname (in file which would be in my case .sql files and
> oname .xxx).

Can <apply> help you?

Stefan

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


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


Mime
View raw message