ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46737] Extend documentation of echo/java-when-forked tasks
Date Thu, 07 May 2009 09:42:27 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46737


Stefan Bodewig <bodewig@apache.org> changed:

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




--- Comment #1 from Stefan Bodewig <bodewig@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.

Mime
View raw message