2009/10/9 Wim Deblauwe <[email protected]> > Hi, > > I have an assembly descriptor with the following: > > <assembly> > .. > <dependencySets> > <dependencySet> > <unpack>true</unpack> > <scope>provided</scope> > <includes> > <include>foo:bar:zip</include> > </includes> > <unpackOptions> > <excludes> > <exclude>webapps/root/**/*.*</exclude> >
this exclude will exclude all of the files in directories that contain a period if you try <execlude>webapps/root/*/**</exlcude> that will include all the files in root and each directory (but the directories will be empty) if you go with <exclude>webapps/root/**</exclude> That will include an empty root directory I suspect that you will have to do something along the lines of explicitly excluding named directories as iirc, includes is processed first another thing to try is <exclude>webapps/root/*/</exclude> <exclude>webapps/root/*/**</exclude> but that may still result in the empty first level directories > </excludes> > </unpackOptions> > </dependencySet> > .. > </assembly> > > The zip file that I want to unpack into the assembly contains a > 'webapps/root' directory and this directory has some subdirectories. I > don't > want to unpack this directory. With the pattern I have used, none of the > files are there (good), but the subdirectories are still there (not good). > > How can I avoid that the subdirectories are still in the assembly? > > regards, > > Wim >
