You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Mourad Meddahi <mo...@laposte.net> on 2001/08/27 15:29:17 UTC
style+mapper
Hi,
i have a problem.
i have this following task :
<style basedir="interfaces"
destdir="temp/interfaces/Remote"
extension=".java"
style="RemoteCodeGenerator.xsl"
processor="trax"
includes="**/*Logic.xml"/>
<copy todir="src/net/company">
<fileset dir="temp/interfaces/Remote"/>
<mapper type="regexp"
from="^(.*)/([^/]+)Logic\.java$$"
to="\1/ejb/\2Logic\.java"/>
</copy>
to explain : there is a folder "interfaces" where there are the
RemoteCodeGenerator.xsl and the folder Admin, Hierarchy of xml's files.
but after the transformation i want to put the transformed and renamed
files ( the xyz .java files) in src/net/company/ejb/Admin as
xyzLogic.java files.
instead of making a style and a copy task, does anyone have a idea about
making only that in one style task (so try to put the mapper tag into
the style tag )
TIA
mouxmoux