I also see a strange behavior that tells me I am missing something: with the configuration I described, I have my contents put in:
WEB-INF/classes/contents/stage The same result I have if I put them in src/main/webapp/contents/stage without any additional configuration or targetPath, of course. Well, with the first configuration, images are *not* found. With the second one, they are. This while the target folder is the same in both cases. Maybe I have to dig in war plugin and war resources to understand this... On Wed, Nov 4, 2009 at 12:32 PM, Daniele Dellafiore <[email protected]>wrote: > Hi everyone. > > I have this resource: > > <resource> > <directory>src/main/contents</directory> > <includes> > <include>${runtime}/**</include> > </includes> > <targetPath>contents</targetPath> > </resource> > > let's suppose that ${runtime} has this value: "stage". > The result is that I have the src/main/contents/stage files copied into > WEB-INF/classes/contents/stage. > What I would like to achieve is that those files are copied info > WEB-INF/classes/contents/ without stage. > This would save me to know in many part of the code, what is the actual > value of "runtime" and I can provide different version of same application > with different resources (text, images, everything). > > Any idea? > > Thanks. > > -- > Daniele Dellafiore > http://danieledellafiore.net > -- Daniele Dellafiore http://danieledellafiore.net
