Hi,
This is what ant shows. And the java program will interpret it as an arg.
Maybe I have to change the java program how args are interpreted.
Or any other suggestions?
Cheers,
//mikael
[java] ''
[java]
[java] The ' characters around the executable and arguments are
[java] not part of the command.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: den 23 februari 2007 09:13
To: [email protected]
Subject: AW: empty string is interpreted as arg to java program
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:[EMAIL PROTECTED]
>Gesendet: Freitag, 23. Februar 2007 09:08
>An: [email protected]
>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: [EMAIL PROTECTED] For additional commands, e-mail:
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]