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 2009/05/07 11:42:27 UTC

DO NOT REPLY [Bug 46737] Extend documentation of echo/java-when-forked tasks

https://issues.apache.org/bugzilla/show_bug.cgi?id=46737


Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX




--- Comment #1 from Stefan Bodewig <bo...@apache.org>  2009-05-07 02:42:20 PST ---
ant doesn't, Runtime.exec does - and there isn't much Ant can do.

If you run Ant in verbose mode you'll see

     [echo] Variable is "src"
     [echo] Now lets see what exec do with quotes
     [exec] Current OS is Windows XP
     [exec] Executing 'echo' with arguments:
     [exec] '"src"'
     [exec]
     [exec] The ' characters around the executable and arguments are
     [exec] not part of the command.
     [exec] src
     [echo] It removes quotes - even when entered directly
     [exec] Current OS is Windows XP
     [exec] Executing 'echo' with arguments:
     [exec] '"src"'
     [exec]
     [exec] The ' characters around the executable and arguments are
     [exec] not part of the command.
     [exec] src

even on Windows where echo swallows the quotes.

Ant uses the String[] version of Runtime.exec and passes down the quotes, it's
just that they get swallowed later either inside the class libraries
implementation of exec or inside the OS.

CANTFIX rather than WONTTFIX

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