ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mourad Meddahi <mourad.medd...@laposte.net>
Subject style+mapper
Date Mon, 27 Aug 2001 13:29:17 GMT
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


Mime
View raw message