You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by virtualshock <na...@virtualshock.net> on 2009/06/02 16:35:33 UTC
Maven Assembly Question
I previously was building a zip file with Ant. I have now moved on to Maven.
I haven't been able to figure out how I can traverse directories copying all
files found into one location like Ant's flatten.
For instance :
--TestDir1
----TestDir2
------TestFile1.xml
----TestDir3
------TestDir4
--------TestFile2.xml
I want to traverse TestDir1 and get all the *.xml files and copy them into a
new location. All I have been able to get Maven to do is copy all the
directories and files. Here is my assembly snippet :
<fileSet>
<directory>src/main/resources/test/integrations</directory>
<outputDirectory>integrations</outputDirectory>
<includes>
<include>**/**.xml</include>
</includes>
</fileSet>
In Ant I used this syntax to copy :
<copy todir="${INTEGRATIONS_DIR}" flatten="true" overwrite="true">
<fileset dir="src/conf/integrations" includes="**/**.xml,**/**.properties"
/>
</copy>
Thanks
--
View this message in context: http://www.nabble.com/Maven-Assembly-Question-tp23833852p23833852.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Assembly Question
Posted by virtualshock <na...@virtualshock.net>.
Bump....Anybody have some suggestions?
--
View this message in context: http://www.nabble.com/Maven-Assembly-Question-tp23833852p24205262.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org