You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by David Delbecq <de...@oma.be> on 2006/11/28 16:31:40 UTC
pathconvert and filemapping in maven.xml?
Hello,
i am facing a problem with maven (1.0.2) here. It seems the ant task
'pathconvert' ignores it content <mapper> elements, despite the ant
documention. As a result, i can't map the filename in a fileset to
other names, things i can do in pure ant scripts (build.xml)
<project ... xmlns:ant="jelly:ant" ...>
...
<!-- this code is inside a goal -->
<ant:path id="animation.set">
<ant:fileset dir="${maven.build.dir}/svg/" >
<ant:include name="wait*.svg"/>
</ant:fileset>
</ant:path>
<ant:pathconvert property="animationitems" pathsep=" "
refid="animation.set" >
<ant:mapper>
<flattenmapper/>
<globmapper from="*.svg" to="*.png"/>
</ant:mapper>
</ant:pathconvert>
<ant:echo message="items: ${animationitems}"/>
This outputs me
/home/delbd/dev/intranet-eclipse/workspace/RMI_support/Offline/target/svg/wait0009.svg
/home/delbd/dev/intranet-eclipse/workspace/RMI_support/Offline/target/svg/wait0005.svg
....
Whereas the expected output is
wait0009.png wait0005.png ...
I have tried variation on chainmapper / mapper / mapper type="..." / no
"ant:" prefix for tag. The only elements that pathconvert seems to take
care of is <map/>. Worse, if i put this
<ant:pathconvert property="animationitems" pathsep=" "
refid="animation.set" >
<ant:someInexistantTag/>
</ant:pathconvert>
I get no error?!?
What am i doing wrong?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org