It proved to be a little troublesome to tease out the different resource types, so I had to compromise with...
<resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> <excludes> <exclude>**/*.gif</exclude> <exclude>**/*.jpg</exclude> </excludes> </resource> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.gif</include> <include>**/*.jpg</include> </includes> </resource> And this works, but there is of course a risk with relying on the file extensions. Does anyone have some dependable code to sniff at the files to see if they are text or binary? > -----Original Message----- > From: Stephen Connolly [mailto:[EMAIL PROTECTED] > Sent: 13 February 2008 13:38 > To: Maven Users List > Subject: Re: damage image files > > I use > <resource> > <directory>src/main/resources/filtered</directory> > <filtering>true</filtering> > </resource> > <resource> > <directory>src/main/resources/verbatim</directory> > <filtering>false</filtering> > </resource> > > As it describes exactly what happens to it's contained resources > > On Feb 13, 2008 11:56 AM, John Coleman < > [EMAIL PROTECTED]> wrote: > > > I think we will try something like this.... > > > > <resource> > > <directory>src/main/resources/cfg</directory> > > <filtering>true</filtering> > > </resource> > > <resource> > > <directory>src/main/resources/bin</directory> > > </resource> > > > > This separate our configurable text file resources from our > binaries, > > should do the trick. > > > > > -----Original Message----- > > > From: Rémy Sanlaville [mailto:[EMAIL PROTECTED] > > > Sent: 13 February 2008 10:07 > > > To: Maven Users List > > > Subject: Re: damage image files > > > > > > Hi John, > > > > > > It's amazing that we had the same problem yesterday. > > > It seems that it comes from filter but not sure for the moment. > > > > > > I will try to create a simple example project in order to can > > > reproduce the problem. > > > > > > Rémy > > > > > > > Eurobase International Limited and its subsidiaries (Eurobase) are > > unable to exercise control over the content of information > in E-Mails. > > Any views and opinions expressed may be personal to the > sender and are > > not necessarily those of Eurobase. Eurobase will not enter into any > > contractual obligations in respect of any part of its > business in any E-mail. > > > > Privileged / confidential information may be contained in > this message > > and /or any attachments. This E-mail is intended for the use of the > > addressee(s) only and may contain confidential information. > If you are > > not the / an intended recipient, you are hereby notified > that any use > > or dissemination of this communication is strictly > prohibited. If you > > receive this transmission in error, please notify us > immediately, and then delete this E-mail. > > > > Neither the sender nor Eurobase accepts any liability > whatsoever for > > any defects of any kind either in or arising from this > E-mail transmission. > > E-Mail transmission cannot be guaranteed to be secure or > error-free, > > as messages can be intercepted, lost, corrupted, destroyed, contain > > viruses, or arrive late or incomplete. Eurobase does not accept any > > responsibility for viruses and it is your responsibility to > scan any attachments. > > > > Eurobase Systems Limited is the main trading company in the > Eurobase > > International Group; registered in England and Wales as > company number > > 02251162; registered address: Essex House, 2 County Place, > Chelmsford, > > Essex > > CM2 0RE, UK. > > > > > > > --------------------------------------------------------------------- > > 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]