ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob <tuk...@yahoo.com>
Subject Optional jvmargs ???
Date Wed, 03 Sep 2003 20:43:23 GMT
Dear All,

Am new to Ant and trying to define optional JVMARGs only when arguments
have been passed on the Ant command line by the user:

<jvmarg value="-Dopt.1=${opt.1}" if="opt.1" />

...but I get the error:

build.xml:253: Class org.apache.tools.ant.types.Commandline$Argument
doesn't support the "if" attribute.

This is Ant version 1.5.1.  I tried out version 1.5.4 and got the same
error.

Found the 'jvmarg if=' example in... 

http://archives.real-time.com/pipermail/tomcat-devel/2002-October/041850.html

...and the jvmargset that they were using doesn't work either.  Is this
an extension?

Would also like to define default JVM arguments which can be overridden
by the user; for example:

<property name="myDefault" value="1" />
...
   <jvmarg value="-DmyDefault=${myDefault}" />

What's the rules of precedence on passed-in Ant arguments versus
properties defined in build.xml?

Cheers
Rob
Lowly Consultant, NYC

________________________________________________________________________
Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://uk.messenger.yahoo.com/

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


Mime
View raw message