Merge static generated files in WAR?
Hi, I'd appreciate any suggestions as to the best way to do the above... I've got some generated files (web.xml, weblogic.xml, taglib.tld) that I generate to target/xdoclet/META-INF/, but I've also got some static files, in src/main/webapp/, so can't simply use the target folder as the warSourceDirectory value. I can pickup the web.xml via the maven-war-plugin's webXml config, but don't know how I could get the other generated files into the WAR. Options seem to be: 1) Get the war-plugin to also pull them in 2) Generate them into the exploded war 3) Generate them into src/main/webapp/ (I suspect all of the above will need some form of special filtering for web.xml...) Any suggestions? /Gwyn -- View this message in context: http://www.nabble.com/Merge-static-generated-files-in-WAR--t1473530.html#a3984999 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Merge static generated files in WAR?
If you need to do merging of web.xml, you may want to look at cargo http://cargo.codehaus.org/Merging+WAR+Files On 19/04/06, Gwyn [EMAIL PROTECTED] wrote: Hi, I'd appreciate any suggestions as to the best way to do the above... I've got some generated files (web.xml, weblogic.xml, taglib.tld) that I generate to target/xdoclet/META-INF/, but I've also got some static files, in src/main/webapp/, so can't simply use the target folder as the warSourceDirectory value. I can pickup the web.xml via the maven-war-plugin's webXml config, but don't know how I could get the other generated files into the WAR. Options seem to be: 1) Get the war-plugin to also pull them in 2) Generate them into the exploded war 3) Generate them into src/main/webapp/ (I suspect all of the above will need some form of special filtering for web.xml...) Any suggestions? /Gwyn -- View this message in context: http://www.nabble.com/Merge-static-generated-files-in-WAR--t1473530.html#a3984999 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Merge static generated files in WAR?
Thanks, but I'm not sure that's quite what I need - There's no actual merging of WARs needed, just the creation of a single one. The web.xml special case would just be in case the war plugin would throw it's toys out of the pram if it found an existing web.xml when it came to copy one into the exploded WAR, as might happen with my workarounds (it would be the same file, though, so it would be OK if one copy was to overwrite the other). /Gwyn -- View this message in context: http://www.nabble.com/Merge-static-generated-files-in-WAR--t1473530.html#a3985125 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Merge static generated files in WAR?
There's another email thread talking about recent changes to WAR, specifically MWAR-12, perhaps the new webResources tag helps you? See this thread: [m2] MWAR-12 Changes to maven-war-plugin Wayne On 4/19/06, Gwyn [EMAIL PROTECTED] wrote: Thanks, but I'm not sure that's quite what I need - There's no actual merging of WARs needed, just the creation of a single one. The web.xml special case would just be in case the war plugin would throw it's toys out of the pram if it found an existing web.xml when it came to copy one into the exploded WAR, as might happen with my workarounds (it would be the same file, though, so it would be OK if one copy was to overwrite the other). /Gwyn -- View this message in context: http://www.nabble.com/Merge-static-generated-files-in-WAR--t1473530.html#a3985125 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]