Thanks for the quick reply, I will give it a shot.

Sorry, more Qs:

1. how to use <buildnumber> task, can I set it to a property and later refer to 
its value? I wanna keep the value in my build log file.

2. anyone knows what's the best way to keep the build log or the audit log, or 
just use <record> task?

Thanks.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 17, 2005 9:15 AM
To: [email protected]
Subject: AW: Help with Ant


<basename suffix=".ext"/>
If the suffix is not known before, you could try a regexp and
<propertyregexp/> (AntContrib)

Jan

> -----Urspr�ngliche Nachricht-----
> Von: Michael Wang (IT) [mailto:[EMAIL PROTECTED]
> Gesendet am: Donnerstag, 17. Februar 2005 15:13
> An: Ant Users List
> Betreff: RE: Help with Ant
> 
> 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:[EMAIL PROTECTED]
> 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:[EMAIL PROTECTED]
> > Sent: Wednesday, February 16, 2005 1:19 PM
> > To: [email protected]
> > 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/[EMAIL PROTECTED] 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> 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