--- Steve Cohen <[EMAIL PROTECTED]> wrote: > What am I doing wrong? (ant 1.5a built about a week ago)
Nothing -- it's just that <pathconvert> is a little woobly. See: http://marc.theaimsgroup.com/?l=ant-user&m=100810074614382&w=2 You're trying to deal with a Unix-style pathname, but you're running on a Win* box, so by the time <path> has had at your "/build", it's already become "E:\build", so there's nothing to match in the mapping. What you need to do is to account for that weirdness: <project name="test" default="testtarget"> <property name="dist.dir" value="/build"/> <target name="testtarget"> <pathconvert pathsep=":" property="p1"> <path> <pathelement location="${dist.dir}"/> </path> <map from="E" to="C"/> </pathconvert> <echo message="mapped ${dist.dir} ==> ${p1}"/> </target> </project> Of course, that sucks, because then you've got that hard-coded "E" drive letter in there, and that's probably not guaranteed to always be the drive this is being run on, right? <pathconvert> should probably be re-thought, but in the meantime... Recommendation: Find another way to do what you need to do without using <pathconvert> :) Diane ===== ([EMAIL PROTECTED]) __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
