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