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

           Summary: Exec task does not work well in paths with brackets
           Product: Ant
           Version: 1.8Alpha (nightly)
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Core tasks
        AssignedTo: [email protected]
        ReportedBy: [email protected]


If the executable file contains brackets ("()") in the path name and does not
contain any other characters that are required to be escaped (e.g. spaces),
then the executuable task fails.

To reproduce, create directory e.g. "C:\bracket()" and place the attached files
there. Run ant -f build.xml and you get the following output:

Buildfile: build.xml

all:
     [echo] Running Program... 
     [exec] 'C:\bracket' is not recognized as an internal or external command,
     [exec] operable program or batch file.
     [exec] Result: 1

BUILD SUCCESSFUL
Total time: 0 seconds

Happens both for with
Apache Ant version 1.7.1 compiled on June 27 2008
Apache Ant version 1.8.0alpha compiled on April 10 2009

This is always reproducible.

Thanks,
Dmitry Lipin
NetBeans Team

-- 
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