ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Murdoch" <adammurdoch...@yahoo.com>
Subject RE: arg and fileset
Date Mon, 11 Feb 2002 20:55:40 GMT

Hi,

Have a look at the <apply> task - it should do what you need.


Adam

> -----Original Message-----
> From: Stefan Thull [mailto:stefan@s-thull.de]
> Sent: Tuesday, 12 February 2002 4:00 AM
> To: ant-user@jakarta.apache.org
> Subject: arg and fileset
>
>
> Hi,
> I want to use ant to start an install-program (it is a dos-prog)for my
> palm in a certain directory.
> It should take all .pdb files in this directory as an argument for the
> program.
> I tried:
> <project name="Copy2Palm" default="pilotxfer"  basedir=".">
>   <property name="src" value="."/>
>   <property name="datei" value="*.pdb"/>
> <target name="pilotxfer" >
> <exec  executable="d:\download\Palm\pilot-xfer\kittykiller.exe"
> os="Windows 98"/>
> <exec executable="d:\download\Palm\pilot-xfer\pilot-xfer.exe"
> os="Windows 98"  >
> <env key="PILOTRATE" value="38400"/>
> <arg line="-i ${datei}"/>
> </exec>
> </target>
> </project>
>
> But it doesn't work: error: unable to open "*.pdb"
>
> My build file works, when I place the name of the pdb file manually:
>  <arg line="-i test.pdb"/>
>
> Can I use a fileset to get it done?
> If there are more than 1 file in this directory, how can I get a
> comma-seperated list as argument?
>
> Thank you very much.
>
>
> Stefan
> mailto:stefan@s-thull.de
>
>
> --
> 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