ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: referring to cmd-line args
Date Wed, 29 May 2002 15:59:59 GMT
--- Uroš_Jurglič <jurglic@parsek.net> wrote:
> How can I in build.xml refer to cmd-line arguments after target name? I
> want to run 'ant run arg1 arg2' that would run apropriate command with
> given args. Is this possible?

Ant uses properties -- define a property, using -Dprop=val on the command
line, then reference the property in your build file.

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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


Mime
View raw message