You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2014/11/26 11:10:38 UTC
[Bug 57264] New: Exec arg/line parser removes dash symbol from
command line arguments
https://issues.apache.org/bugzilla/show_bug.cgi?id=57264
Bug ID: 57264
Summary: Exec arg/line parser removes dash symbol from command
line arguments
Product: Ant
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P2
Component: Core tasks
Assignee: notifications@ant.apache.org
Reporter: muryshkin@gmail.com
Test setup: Ant 1.9.4 on Debian Jessie, JRE 1.7.0
Need to pass argument "-f" or "--file" to command line via exec task.
All this is not working (called tool reports that an argument without dash, "f"
or "file" was called.
<arg value="-f"/>
<arg value="--file"/>
<arg line="-f"/>
<arg line="--file"/>
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 57264] Exec arg/line parser removes dash symbol from command
line arguments
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57264
Stefan Bodewig <bo...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #1 from Stefan Bodewig <bo...@apache.org> ---
Hmm, seems to work for me.
$ cat /tmp/exec.xml
<project>
<exec executable="uname">
<arg value="-a"/>
</exec>
</project>
$ ant -f /tmp/exec.xml
Buildfile: /tmp/exec.xml
[exec] Linux brick 3.13.0-39-generic #66-Ubuntu SMP Tue Oct 28 13:30:27
UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Can you please run "ant -v" to see what's going on? For me it says
[exec] Current OS is Linux
[exec] Executing 'uname' with arguments:
[exec] '-a'
[exec]
[exec] The ' characters around the executable and arguments are
[exec] not part of the command.
and the dash is there (obviously not only inside the logs) as "uname a" would
cause an error.
--
You are receiving this mail because:
You are the assignee for the bug.