Maybe that is a good start for your work...
Jan
build.xml
---8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<
----
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="test" basedir="." default="main">
<taskdef resource="net/sf/antcontrib/antcontrib.properties" />
<target name="main">
<xmlproperty file="data.xml"/>
<delete dir="${data(todir)}"/>
<mkdir dir="${data(todir)}"/>
<for list="${data.dir}" param="srcdir">
<sequential>
<copy todir="${data(todir)}" includeEmptyDirs="false">
<fileset dir="@{srcdir}"/>
<mapper type="regexp" from="(.*\\)*(.*)"
to="[EMAIL PROTECTED]"/>
</copy>
</sequential>
</for>
</target>
</project>
---8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<
----
data.xml
---8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<
----
<data todir="dest">
<dir>dir1</dir>
<dir>dir2</dir>
</data>
---8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<
----
> -----Urspr�ngliche Nachricht-----
> Von: Henning Waack [mailto:[EMAIL PROTECTED]
> Gesendet am: Samstag, 5. Februar 2005 11:52
> An: Ant Users List
> Betreff: Re: XML and copy directories
>
> Hello all.
>
> Thanks again for your input, I will evaluate if it is worth
> to learn Ant for the coming project. Normally I would say
> yes, but I have a tight schedule, so I don't know if I can
> afford to learn something new.
> >>
> >>One minute... ALL (ok, almost) of us, using Ant know Java! Ant was
> >>designed mainly for programmers. There is tons of stuff Ant will
> >>automate, that will take you much longer to write in Java.
> It's worth
> >>spending some time learning Ant.
> >>My $0.02
> >>-nat
> >
> >
> > I'm finding that it is /much/ easier sometimes to write out an
> > Ant task, compile, and invoke it. All my projects are set so
> > that they have this capability.
> >
> > I spent a lot of time trying to write stuff in Ant and have come
> > to the conconclusion that there are many tasks Java will
> > automate, that will take me much longer to write in Ant.
> >
> > Ant tasks are simple to write, anyhow. All the nice features of
> > an Ant script, the dependencies, the paths, the super-globbing,
> > are available to your Java Ant task.
>
> Greetings,
>
> Henning
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>