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


Stefan Bodewig <[email protected]> changed:

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




--- Comment #1 from Stefan Bodewig <[email protected]>  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.

Reply via email to