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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to