ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "deepali sharma" <deepali...@gmail.com>
Subject Re: Command line parameter
Date Fri, 16 Jun 2006 10:31:47 GMT
sorry i think it was silly question.
i can have a default task when user does not enter anything
it is working fine now.
great help JAN and others also

cheers
deepali

On 6/16/06, deepali sharma <deepali.sb@gmail.com> wrote:
>
> i think the last answer is pretty close.
> suposse i gave ant task1 it will execute all tasks inside target task1.
> similarly for task2.
>
> <target name="task1">
>        <antcall target="backup"/>
>       <antcall target="clean"/>
>  </target>
>
>         <target name="clean" depends="initbase">
>             <echo>Inside task1 Clean</echo>
>             <delete dir="${build}"/>
>             <delete dir="${src}"/>
>         </target>
>
>
> What about the default parameter???
> <project name="myproject" default="all" basedir=".">
>
>
>
> On 6/16/06, Jan.Materne@rzf.fin-nrw.de <Jan.Materne@rzf.fin-nrw.de >
> wrote:
> >
> > - bundle your tasks in a <target><echo>HelloWorld</echo></target>
> > - give that target a name  <target name="foo">
> > - call that target from the commandline
> >   ant foo
> >
> >
> > Jan
> >
> > >-----Urspr√ľngliche Nachricht-----
> > >Von: deepali sharma [mailto: deepali.sb@gmail.com]
> > >Gesendet: Freitag, 16. Juni 2006 11:49
> > >An: user@ant.apache.org
> > >Betreff: Command line parameter
> > >
> > >Hi
> > >We have requirement like this.
> > >I want to give a command line argument and based on this
> > >argument I want run some task.
> > >Can this is possible.
> > >If possible how we can achieve this???
> > >
> > >--
> > >cheers....
> > >deepali
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
> >
>
>
> --
> cheers....
> deepali
>



-- 
cheers....
deepali

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