ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 38109] New: - The regular expression is expanded on the windows in the javac task
Date Tue, 03 Jan 2006 18:39:00 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38109>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38109

           Summary: The regular expression is expanded on the windows in the
                    javac task
           Product: Ant
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: tzezula@netbeans.org


While passing regexp as an arguments to the java task on the Windows the quoted
reqular expression is expanded. It is hard to pass the regular expression to the
java application. It works fine on Linux.

<java classname="test.Main" dir="C:\" fork="true">
    <arg line="${application.args}"/>
    <classpath>
     ....
    </classpath>
</java>

where application.args is "'\d*' Foo"
On th Windows the "\d*" is expanded into the folders on the C: drive.

Ant debug output:

Executing 'C:\jdk1.5.0\jre\bin\java.exe' with arguments:
'-classpath'
'C:\temp\JavaApplication5\build\classes'
'javaapplication5.Main'
'\d*'
'Foo'

The ' chars were removed by the CommandLine.translateCommandLine () method and
then expanded by Windows. If I pass the regexp argument as <arg value="'\d*'"/>,
the ' characters are not removed and it works fine.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message