1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
<?xml version="1.0" encoding="UTF-8"?>
<project name="PathConvertTest" default="test" basedir=".">
<path id="testpath">
<pathelement path="${phing.file}" />
</path>
<target name="testDirChar">
<pathconvert property="def|ghi" dirsep="|">
<map from="${project.basedir}/abc/" to=''/>
<path dir="abc/def/ghi"/>
</pathconvert>
</target>
<target name="testmap">
<pathconvert property="result" dirsep="#">
<path refid="testpath" />
<map from="${project.basedir}" to="test" />
</pathconvert>
</target>
<target name="testmapper">
<pathconvert property="result" dirsep="#">
<path refid="testpath" />
<mapper type="glob" from="${project.basedir}*" to="test*" />
</pathconvert>
</target>
<target name="testnotargetos">
<pathconvert property="result" refid="testpath" />
</target>
</project>
|