ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: empty string is interpreted as arg to java program
Date Fri, 23 Feb 2007 08:13:28 GMT
Start Ant with "-d" or "-v" option and you'll get the command which is used for <java>.

Jan

>-----Urspr√ľngliche Nachricht-----
>Von: Mikael Petterson (KI/EAB) [mailto:mikael.petterson@ericsson.com] 
>Gesendet: Freitag, 23. Februar 2007 09:08
>An: user@ant.apache.org
>Betreff: empty string is interpreted as arg to java program
>
>Hi,
>
>I set a property to:
>
><property name="mock.flag" value=""/>
>
>Then in my java task I pass the following:
>
><arg value="${mock.flag}"/>
>
>The java program interpret this as a argument value.
>
>What is sent to my java program. How can I make sure that when value is
>"" that no value is sent to my program?
>
>Cheers,
>
>//mikael
>

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


Mime
View raw message