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 18795] - Pathconvert strange behavior
Date Tue, 08 Apr 2003 06:39:05 GMT
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=18795>.
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=18795

Pathconvert strange behavior





------- Additional Comments From bodewig@apache.org  2003-04-08 06:39 -------
It would really help if you'd cut your example to the relevant parts 8-)

Let's see:

<pathconvert refid="hibernate.mapfiles" property="tmp1" pathsep=" "/>

generates

[pathconvert] Set property tmp1 = 
C:\JAVA\PRJ\agapi\build\classes\enerprom\agapi\metadata\reference\Dealer.hbm.xm
l 
C:\JAVA\PRJ\agapi\build\classes\enerprom\agapi\metadata\reference\Userlogin.hbm
.xml

You say it works correctly, so this is what you want.  A space separated list of
all files making up your hibernate.mapfiles fileset.

The you go on and use that property in

<arg path="${tmp1}"/>

The path attribute of <arg> expects as its value a String that looks like a
PATH like environment variable.  You have the files separated by space, a PATH
is separated by either : or ;.  Parsing your property,
"C:\JAVA\PRJ\agapi\build\classes\enerprom\agapi\metadata\reference\Dealer.hbm.xm
l C"
becomes the first part of your path as the first : is considered a disk
specifier and the next possible separator is the : after the C.  You get what you
are asking for.

If you want the value of your property literally, use <arg value="${tmpl}"/>
instead.

I'm not closing this report as INVALID right now, as I don't know whether I have
misunderstood what you want and where the problem is.

Mime
View raw message