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 <[EMAIL PROTECTED]> 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


Reply via email to