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

           Summary: < and > not quoted by quoteArgument causes failure on
                    Windows
           Product: Ant
           Version: 1.7.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P2
         Component: Core
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Because the Executor uses the cmd.exe to launch the command - if an argument
contains a < or a > this gets interpreted by cmd as an input/output redirection
and causes the command to fail.

The fix for this should be fairly easy. An extra OR clause in the quoteArgument
method of the Commandline class.

       // WIN9x uses a bat file for executing commands
                   || (IS_WIN_9X && argument.indexOf(';') != -1)
                   || (IS_WIN_9X && (argument.indexOf('<') ||
argument.indexOf('>')) != -1)

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