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:[EMAIL PROTECTED]
> Gesendet am: Dienstag, 6. Mai 2003 18:53
> An: Ant Developers List; [EMAIL PROTECTED]
> 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:[EMAIL PROTECTED]
> > > Gesendet am: Dienstag, 6. Mai 2003 18:11
> > > An: [EMAIL PROTECTED]
> > > 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
> > >
> > > [EMAIL PROTECTED] 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.
> > >
>
> [EMAIL PROTECTED] 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.
>