I'm glad you figured out how to get what you wanted.
My point was that if those images shouldn't be packaged, they probably
shouldn't be in your main resources directory.
youhaodeyi wrote:
Hi,
I know what the problem is. The directory starts from target/classes not
project base directory. so the correct configuration should be:
<exclude>images/**</exclude>
I excludes these images because I don't want my jar file becomes big. In
addition, if the image icons the java application uses are out of the jar
file, I can update these icons with breaking the jar.
dchicks wrote:
If I may ask, why do you want to exclude things in the images
subdirectory? If they aren't part of your real build, then they probably
shouldn't be there in the first place. My point being that there may be
another way to solve your problem.
youhaodeyi wrote:
Hi,
This doesn't work either.
But this works:
<exclude>**/images/**</exclude>
I don't want to use this because it will exclude my source code which
have
the package including images.
Nick Stolwijk-4 wrote:
Try:
<exclude>src/main/resources/images/*</exclude>
<exclude>src/main/resources/images/**/*</exclude>
Hth,
Nick Stolwijk
~Java Developer~
Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl
On Wed, Oct 22, 2008 at 5:02 PM, youhaodeyi <[EMAIL PROTECTED]>
wrote:
I added the extra level of wildcard, but it the files under images
directory
are copied into the jar file too. It seems that this doesn't work.
dchicks wrote:
I think you want an extra level of wildcard on the end of that.
<exclude>src/main/resources/images/**/*</exclude>
youhaodeyi wrote:
I use want to exclude all the directories and files under images
directory:
<exclude>src/main/resources/images/**</exclude>
But it doesn't work. How can I use wildcard in this case?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
View this message in context:
http://www.nabble.com/How-to-use-wildcard-to-match-all-the-sub-directories-and-files--tp20112204p20112718.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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]