Not tried, but there are two different things combined in your statement:
- the selection of files to work on (<include> selector)
- how to handle these files (default setting of <move>)
The second you can modify with <mapper>s. E.g. the regexp-mapper could be
useful. Just a thought:
<move todir="${maven.dist.src.assembly.dir}/sw/ant" overwrite="true">
<fileset dir="${maven.dist.src.assembly.dir}">
<include name="sw/apache-ant-*/**"/>
</fileset>
<regexpmapper from="sw/apache-ant-.*/" to=""/>
</move>
Jan
> -----Urspr�ngliche Nachricht-----
> Von: Franz-Josef Herpers [mailto:[EMAIL PROTECTED]
> Gesendet am: Donnerstag, 18. November 2004 10:41
> An: Ant Users List
> Betreff: Re: AW: copy
>
> Hi Jan,
>
> thanks for your answer.
>
> >Use the nested
> > <include name="sw/apache-ant-*/"/>
> >without the trailing *, so Ant knows that that is a
> directory and uses
> >the whole tree under that.
> >
> >
> I now have
>
> <move todir="${maven.dist.src.assembly.dir}/sw/ant"
> overwrite="true">
> <fileset dir="${maven.dist.src.assembly.dir}">
> <include name="sw/apache-ant-*/**"/>
> </fileset>
> </move>
>
> What I really want is to move every descendent directory and
> file under
> sw/apache-ant-* to sw/ant. What I get with this is:
>
> sw/ant/sw/apache-ant-*/**
>
> But I want sw/ant/[everything under sw/apache-ant*].
>
> If I try
>
> <include name="apache-ant-*/**"/>
>
> I get
>
> sw/ant/apache-ant*/**
>
> So if I could do this
>
> <move todir="${maven.dist.src.assembly.dir}/sw/ant"
> overwrite="true">
> <fileset dir="${maven.dist.src.assembly.dir}/sw/apache-ant-*/">
> <include name="*/**"/>
> </fileset>
> </move>
>
> it would probably work, but of course it doesn't the way I want it.
>
> Any more suggestions?
>
> Thanks
> Franz
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>