Hello Conor,
your explanation sounds great but I am a bit confused :
If you say
ant -Dtest.param=1 target
Do you access ${ant.target}
or ${test.param} ??
for the latter, it seems rather intuitive, but the former one is rather odd
.
What would be the value of ${ant.target } ?
Thanks Conor,
your answer helped me anyway (I'll test it soon)
Conor MacNeill wrote:
> 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 !
> >
> >
> >