DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22444>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22444 Trailing slash in property location eaten Summary: Trailing slash in property location eaten Product: Ant Version: 1.5.3 Platform: PC OS/Version: Linux Status: NEW Severity: Normal Priority: Other Component: Build Process AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] If I specify a property location with a trailing slash (i.e. <property name="Dir2" location="/usr/tmp/"/>) the trailing slash is removed by Ant. This doesn't happen with property value. Here's a test case: $ cat build.xml <project name="testslashes" default="" basedir="."> <property name="Dir1" value="/usr/tmp/"/> <property name="Dir2" location="/usr/tmp/"/> <property name="Dir3" value="/usr/tmp"/> <property name="Dir4" location="/usr/tmp"/> <target name="init"> <exec executable="echo"> <arg line="'this should have a trailing slash: ' '${Dir1}'"/> </exec> <exec executable="echo"> <arg line="'this should have a trailing slash: ' '${Dir2}'"/> </exec> <exec executable="echo"> <arg line="'this should not have a trailing slash: ' '${Dir3}'"/> </exec> <exec executable="echo"> <arg line="'this should not have a trailing slash: ' '${Dir4}'"/> </exec> </target> </project> $ ant init Buildfile: build.xml init: [exec] this should have a trailing slash: /usr/tmp/ [exec] this should have a trailing slash: /usr/tmp [exec] this should not have a trailing slash: /usr/tmp [exec] this should not have a trailing slash: /usr/tmp BUILD SUCCESSFUL Total time: 1 second $ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]