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: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]