ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Wang \(IT\)" <MW...@bordersgroupinc.com>
Subject RE: Help with Ant
Date Thu, 17 Feb 2005 14:12:43 GMT
Thanks for the help. Looks like using foreach might do the trick, However, how can I get only
basename of files?

e.g if the files are ABC1.ext, ABC2.ext, ABC3.ext, I need to run the following command 3 times

compiler.sh module=ABC1
compiler.sh module=ABC2
compiler.sh module=ABC3

Thanks.

MW

-----Original Message-----
From: Anderson, Rob (Global Trade) [mailto:Rob.Anderson@nike.com]
Sent: Wednesday, February 16, 2005 5:53 PM
To: Ant Users List
Subject: RE: Help with Ant


Check out the ant-contrib tasks...

http://ant-contrib.sourceforge.net/

-Rob A

> -----Original Message-----
> From: Michael Wang (IT) [mailto:MWANG@bordersgroupinc.com]
> Sent: Wednesday, February 16, 2005 1:19 PM
> To: user@ant.apache.org
> Subject: Help with Ant
> 
> 
> Hi,
> 
> Is there some if/while control structure in Ant?
> 
> Here is what I am trying to do with Ant.
> 
> I want to write a built script for ant. This script is used 
> to compile some oracle forms on Unix.
> 
> For example, for /usr/local/myproject/src. I have some *.fmb 
> file and I want to convert them using f90genm.sh to *.fmx 
> files. The command to be used will be like
> 
> 	f90genm.sh userid/password@sid module="file_base_name" 
> 
> Is there a way to loop through each file under one folder and 
> extract its basename and feed it to this command?
> 
> Or I'd better have some shell script to do it?
> 
> Thanks a lot.
> 


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