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 47914] New: < and > not quoted by quoteArgument causes failure on Windows
Date Tue, 29 Sep 2009 00:41:20 GMT
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: notifications@ant.apache.org
        ReportedBy: npellow@atlassian.com


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.

Mime
View raw message