I have a set of directories in the form
DeploymentDescriptors
-- Bean1
- ejb-jar.xml
- weblogic-ejb-jar.xml
-- Bean2
- ejb-jar.xml
- weblogic-ejb-jar.xml
--.
- ejb-jar.xml
- weblogic-ejb-jar.xml
--BeanX
- ejb-jar.xml
- weblogic-ejb-jar.xml
What I need to do is copy all the xml files one directory up with the
parent directory's name prepended to the xml file.(Something like
DeploymentDescriptors/Bean1-ejb-jar.xml).I am
using the following piece of script to do this but it fails on Windows 2000 machine.
<copy todir="c:\build-test\test\dd" includes="**/*.xml">
<mapper type="regexp" from="(.*)/(.*)/(.*)" to
="\1/\2-\3" />
</copy>
Can anyone enlighten me how to escape the \ and $ in this case?
--
To unsubscribe, e-mail: <mailto:ant-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org>