ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 33192] - java task doesn't pass debug options properly.
Date Tue, 25 Jan 2005 07:49:30 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33192>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33192





------- Additional Comments From bodewig@apache.org  2005-01-25 08:49 -------
(In reply to comment #8)

> The first thing that would have helped me out would be if the verbose output for
> ant had been a little more helpful and showed the command how it would have been
> run.  Then I could have seen that the quotes were causing the problem when I
> tried to run the output.
> 
> Instead of outputing something like:
> 
>      [java] Executing 'F:\program files\j2sdk14204\jre\bin\java.exe' with
arguments:
>      [java] '-Xdebug'
>      [java] '-Xrunjdwp:transport=dt_socket,suspend=n,server=y,address=20501'
>      [java] '-jar'
>      [java] 'C:\projects\scjd\release-temp\runme.jar'
>      [java] 'server'
> 
> Could you not output something like:
> 
>      [java] F:\program files\j2sdk14204\jre\bin\java.exe" "-Xdebug
> -Xrunjdwp:transport=dt_socket,suspend=n,server=y,address=20501" -jar
> C:\projects\scjd\release-temp\runme.jar server
> 
> or is there really no easy way to output the commandline equivalent of the call
> in the verbose output?

The output Ant generates is as close to reality as it gets.  Your example would
simply be wrong.  Ant uses the String[] version of exec, i.e. it doesn't quote
anything and doesn't use a "command line" at all.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message