ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Cohen" <>
Subject pathconvert - why doesn't this work?
Date Tue, 19 Feb 2002 23:55:28 GMT
What am I doing wrong? 
(ant 1.5a built about a week ago)

Given this build.xml:

<project name="test" default="testtarget">
<property name="dist.dir" value="/build" />
<target name="testtarget">
      <pathconvert targetos="windows" property="p1" >
            <pathelement location="${dist.dir}" />
         <map from="/" to="c:\"/>
      <echo message="mapped ${dist.dir} ==> ${p1}"/>

Why do I get this output?

E:\> ant
Buildfile: build.xml

     [echo] mapped /build ==> E:\build

Total time: 1 second

Given the script above, shouldn't the result be "c:\build"?

Steve Cohen
Sr. Software Engineer
Ignite Sports, Inc.

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

View raw message