ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: AW: command line option visibility within a task ..
Date Tue, 06 May 2003 16:56:37 GMT
You can customize the wrapper script and store the parameter list as Flag.
A kind of 

ant2.bat:
	call ant -Dcmdargs="%*" %*

In Ant you have the property 'cmdargs'. Maybe that works ...


Jan

> -----Ursprüngliche Nachricht-----
> Von: Harsha Kalidindi [mailto:Harsha.Kalidindi@morganstanley.com]
> Gesendet am: Dienstag, 6. Mai 2003 18:53
> An: Ant Developers List; dev@ant.apache.org
> Betreff: Re: AW: command line option visibility within a task ..
> 
> Jan,Peter:
> 
>          Thanks for fixing the email address.
> 
> >Main.main() -> Main.start() -> Main.Main() and none of these methods
> >store the arguments. So you can´t access them.
> >You can modify this class (should be very easy ...). But 
> then you have a
> >customized version of an Ant base class.
> 
>          I definitely don't want to customize a base Ant class ..
> 
>          I'll have to think about this ..
> 
> Regards,
> Harsha
> 
> 
> 
> 
> 
> 
> > > -----Ursprüngliche Nachricht-----
> > > Von: Harsha Kalidindi [mailto:Harsha.Kalidindi@morganstanley.com]
> > > Gesendet am: Dienstag, 6. Mai 2003 18:11
> > > An: ant-dev@apache.org
> > > Betreff: command line option visibility within a task ..
> > >
> > > Hi:
> > >
> > >          I am trying to write a few tasks to extend ant in
> > > our environment.
> > >
> > >          I would like these tasks to emit some debug
> > > information depending
> > > on the command line options used with the ant invocation.
> > >
> > >          Is there a way I can get a list of command line
> > > options that ant
> > > was invoked with?
> > >
> > > Thanks,
> > > Harsha
> > >
> > > Harsha.Kalidindi@MorganStanley.com 212.762.4165
> > >
> > > This communication is intended for the addressee(s) and 
> may contain
> > > confidential and legally privileged information. We do not waive
> > > confidentiality or privilege by mis-transmission. If you have
> > > received this
> > > communication in error, any use, dissemination, printing or
> > > copying is
> > > strictly prohibited; please destroy all electronic and paper
> > > copies and
> > > notify the sender immediately.
> > >
> 
> Harsha.Kalidindi@MorganStanley.com 212.762.4165
> 
> This communication is intended for the addressee(s) and may contain 
> confidential and legally privileged information. We do not waive 
> confidentiality or privilege by mis-transmission. If you have 
> received this 
> communication in error, any use, dissemination, printing or 
> copying is 
> strictly prohibited; please destroy all electronic and paper 
> copies and 
> notify the sender immediately.
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message