Stephane,

You can define properties on the command line which you can then use as
attribute values in your ant tasks.

So, something like this

ant -Dtest.param=1 target

and then use ${ant.target} to access the value.

Conor

> -----Original Message-----
> From: steff [mailto:steff]On Behalf Of Stephane
> Sent: Sunday, 3 December 2000 4:06
> To: [EMAIL PROTECTED]
> Subject: Parameters for tasks.
>
>
> Hello all,
>
> is there a way to pass arguments to ant tasks ?
> It would be pretty nice for exemple
> if you want to give args to a "run" target to give them on the command
> line
> of ant instead of creating many different targets for each different
> tasks.
>
> Thanks in advance,
>  and excuse me if i ask stupid questions,
>  i am a yound user of ant, and yet mad of it.
>
> What a software you made !
>
>
>

Reply via email to