ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maurice Feskanich <Maurice.Feskan...@Sun.COM>
Subject Re: Fileset patterns...
Date Wed, 28 Jun 2006 21:29:07 GMT
If I'm reading your email right, I think you want to use a 'flatten'
type mapper.

Maury


Juan Jimenez wrote On 06/28/06 09:27 AM,:
> Hi,
> 
> Could someone please suggest a better way of achieving the following:
> 
>         <echo>Copying coverage data to ${temp.folder}/coverage</echo>
>         <copy todir="${coverage.folder}">
>             <fileset dir="${basedir}/..">
>                 <include name="**/unittest/coverage/**/*"/>
>             </fileset>
>         </copy>
>         <move todir="${coverage.folder}">
>             <fileset dir="${coverage.folder}/unittest/coverage">
>                 <include name="**/*"/>
>             </fileset>
>         </move>
>         <delete dir="${coverage.folder}/unittest" />
> 
> Basically I would like something as short as:
> 
>         <copy todir="${coverage.folder}">
>             <fileset dir="${basedir}/../**/unittest/coverage">
>                 <include name="**/*"/>
>             </fileset>
>         </copy>
> 
> So that I don't end up copying unittest/coverage directories too.
> 
> Thanks
> 
> Juan
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message