ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob <>
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$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

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

...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?

Lowly Consultant, NYC

Want to chat instantly with your online friends?  Get the FREE Yahoo!

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message