ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juan Jimenez" <violeth...@gmail.com>
Subject Re: Command line parameter
Date Fri, 16 Jun 2006 09:55:11 GMT
Easy...I use this trick to run/not run my unit tests:

command line to run my unit tests:

ant -Dunit.test=true build.all

command line to skipt my unit tests:

ant build.all

ANT Script:

<target name="build.all" depends="compile,run.unit.tests">
...
</target>

<target name="run.unit.tests" if="unit.test">
...
</target>


Juan

On 16/06/06, deepali sharma <deepali.sb@gmail.com> wrote:
>
> 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
>
>

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