You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2003/08/15 04:48:09 UTC
DO NOT REPLY [Bug 22444] New: -
Trailing slash in property location eaten
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: dev@ant.apache.org
ReportedBy: eric@timebytes.com
CC: eric@timebytes.com
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org