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 <[EMAIL PROTECTED]> 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, [EMAIL PROTECTED] <[EMAIL PROTECTED] >
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: [EMAIL PROTECTED]
> >Gesendet: Freitag, 16. Juni 2006 11:49
> >An: [email protected]
> >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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
cheers....
deepali
--
cheers....
deepali