ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Echlin, Robert" <Robert.Ech...@windriver.com>
Subject Globmapper - bug?
Date Wed, 25 May 2011 17:18:48 GMT
 Hi
I was trying out globmapper, and got a surprising result that did not match the docs.

Sample below.
Rob

------------ Sample code from the docs ----------
C:\svn\rme\basedir\build\start>cat bug.xml
<?xml version="1.0" encoding="utf-8"?>
<project name="bug-test" basedir="." default="one">
  <target name="one"
          description="Error in glob mapper">
  <pathconvert property="test.folder">
    <path path="Classes/dir/dir2/A.properties"/>
    <mapper>
      <globmapper from="C*ies" to="Q*y"/>
    </mapper>
  </pathconvert>
  <echo>test.folder = ${test.folder}</echo>
  <echo>expected    = Qlasses/dir/dir2/A.property</echo>
        </target>
</project>

---------- Output ------
C:\svn\rme\basedir\build\start>ant -f bug.xml
Buildfile: C:\svn\rme\basedir\build\start\bug.xml

one:
     [echo] test.folder = Q:\svn\rme\basedir\build\start\Classes\dir\dir2\A.property
     [echo] expected    = Qlasses/dir/dir2/A.property

BUILD SUCCESSFUL
Total time: 0 seconds
---------------- End output ---------

And some environment details:
C:\svn\rme\basedir\build\start>ant -version
Apache Ant(TM) version 1.8.2 compiled on December 20 2010

WinXP, probably patched up to date


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message