ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Costin Caraivan <ccarai...@axway.com>
Subject Ant recursive copy + fileset filter
Date Mon, 16 Feb 2009 08:19:09 GMT

Hello,

I'm trying to copy some files from a directory structure, like this:

<copy todir="${project.build.outputDirectory}">
<fileset dir="${basedir}/src/main/java">
<exclude name="**/*.java"/>
</fileset>
</copy>
The problem is that it isn't what I need - I need to copy all non-.java
files to the equivalent folder structure in the new location.

Something like:
folder1/folder2/file.java
folder1/folder2/file.g
folder1/folder2/folder3/file.java
folder1/folder2/folder3/file.g

becomes:
folder1/folder2/file.g
folder1/folder2/folder3/file.g

As far I can see, this isn't possible - or I'm using the wrong fileset...

Any ideas? :)

Regards,
Costin.
-- 
View this message in context: http://www.nabble.com/Ant-recursive-copy-%2B-fileset-filter-tp22033163p22033163.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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


Mime
View raw message