You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Philippe Valle <pv...@eprocess.fr> on 2004/02/05 14:17:51 UTC

ant command prompt

Hi,

I want in command prompt exec this : ant mytarget param1 param2
And in my build.xml if param1 exist to target1 for exemple .

its possible ?


Thanks.






---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


RE: ant command prompt

Posted by Koji Sekiguchi <ko...@bluemartini.com>.
Parameters should be passed as properties. Use format like this:

> ant -Dparam1=x mytarget

In your build file, you can use if attribute with target element like this:

<target name="mytarget" if="param1">
	:
</target>

regards,

Koji

====================================
Technical Support
Blue Martini Software K.K.
Shinbashi Chuo Building 6th Floor
1-11-5 Nishi-shinbashi, Minato-ku
Tokyo 105-0003 Japan
Tel: 81-3-5521-6670
Fax: 81-3-5521-6671
www.bluemartini.co.jp


> -----Original Message-----
> From: Philippe Valle [mailto:pvalle@eprocess.fr]
> Sent: Thursday, February 05, 2004 10:18 PM
> To: Ant Users List
> Subject: ant command prompt
> 
> 
> 
> Hi,
> 
> I want in command prompt exec this : ant mytarget param1 param2
> And in my build.xml if param1 exist to target1 for exemple .
> 
> its possible ?
> 
> 
> Thanks.
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org