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 08:40:48 GMT
Stephane,

Oops... mind not on job. You are right. Access it as ${test.param}

Conor


> -----Original Message-----
> From: steff [mailto:steff]On Behalf Of Stephane
> Sent: Sunday, 3 December 2000 15:28
> To: ant-dev@jakarta.apache.org
> Subject: Re: Parameters for tasks.
> 
> 
> 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: 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