ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koji Sekiguchi" <koji.sekigu...@bluemartini.com>
Subject RE: ant command prompt
Date Fri, 06 Feb 2004 04:11:21 GMT
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


Mime
View raw message