ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <>
Subject RE: Location attribute in property not resolving correctly
Date Thu, 05 Oct 2006 07:54:24 GMT


still no solution ?
Should i fill a bug report about that behaviour
of <propertyfile file="... " />

resulting in a deformed path, f.e.

Y:/bla/corba.jar >>> Y\:/bla/corba.jar


see example below

same result with ant 1.7.0 beta2

Regards, Gilbert

-----Original Message-----
From: Rebhan, Gilbert [] 
Sent: Wednesday, September 27, 2006 8:03 AM
To: Ant Users List
Subject: RE: Location attribute in property not resolving correctly


strange =

<project name="bla" default="main" basedir=".">
    <!-- Import AntContrib -->
    <taskdef resource="net/sf/antcontrib/antlib.xml" />
    <target name="depends">
            age="eldest" >
            <fileset dir="Y:/bla">
                <include name="*.jar" />
        <pathconvert refid="mypath" property="myfixedpath"
        <echo>myfixedpath === ${myfixedpath}</echo>



    <target name="main" depends="depends">
        <propertyfile file="Y:/bla/" />
        <echo>Targetfile === ${filepath}</echo>
</project>, the file which is loaded in the main target looks
like =
#Wed Sep 27 07:53:37 CEST 2006
filepath=Y\:/bla/corba.jar looks like =

so it seems like the timestamp gets added when loading the propertyfile
with <propertyfile file="..."> but what is really fishy is that the path
goes bad

from : Y:/bla/corba.jar to: Y\:/bla/corba.jar

What's responsible for that ?
how to make the example above working ?

Regards, Gilbert

-----Original Message-----
From: Dominique Devienne [] 
Sent: Tuesday, September 26, 2006 6:34 PM
To: Ant Users List
Subject: Re: Location attribute in property not resolving correctly

>        <echo
>  The looks like =
> #Tue Sep 26 17:40:31 CEST 2006
> filepath=Y\:/bla/corba.jar

This is fishy because <echo> would never add the timestamp, like
java.util.Property#store would. So something else created the file
you're showing...

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message