On 2/3/08, James Carman <[EMAIL PROTECTED]> wrote: > On 2/3/08, Insitu <[EMAIL PROTECTED]> wrote: > > "Allen, Daniel" <[EMAIL PROTECTED]> writes: > > > > > I'm building a web application (packaging WAR), and I need to run the > > > web.xml file through a filter to set certain configutation values. I > > > tried adding it to a <resource> tag, but that causes Maven to make a > > > copy of it and put it in WEB-INF/classes subdirectory with all of the > > > rest of the resources. I tried setting <targetPath> to WEB-INF, but then > > > Maven creates WEB-INF/classes/WEB-INF, and puts it in the deeper of the > > > two. I expect that this is because the phase where the the <resources> > > > tag is processed is before the phase where the WAR file (and thus the > > > WEB-INF directory I wish to target) is created. I'm guessing the > > > generate-sources and package phases, respectively? > > > > > > > Hello, > > The war plugin has configuration options for defining and filtering > > webResources. Check http://maven.apache.org/plugins/maven-war-plugin > > When they said "filtering" I think they meant more like what Apache > Ant lets you do with filter sets (replace token values with > configuration values).
Sorry, I hit send too quickly. I actually use the antrun m2 plugin to execute an Ant copy to achieve this. > > > > HTH, > > -- > > Arnaud Bailly, PhD > > OQube - Software Engineering > > http://www.oqube.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]