ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@m64.com>
Subject RE: Parameters for tasks.
Date Sun, 03 Dec 2000 00:29:14 GMT
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: ant-dev@jakarta.apache.org
> 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 !
>
>
>


Mime
View raw message