[ http://jira.codehaus.org/browse/MPWAR-41?page=comments#action_42547 ]
Kees Jongenburger commented on MPWAR-41: ---------------------------------------- Yes. this will greatly improve the usability of the war plugin. it's really a smal change that make a world of difference. <j:set var="targetPath" value="${dep.getProperty('war.target.path')}"/> <j:set var="unzip" value="${dep.getProperty('war.unzip')}"/> <j:if test="${!empty(unzip)}"> <ant:unjar dest="${maven.war.webapp.dir}/${targetPath}" src="${lib.path}"/> </j:if> <j:if test="${empty(unzip)}"> <j:if test="${!empty(targetPath)}"> <ant:copy todir="${maven.war.webapp.dir}/${targetPath}" file="${lib.path}"/> </j:if> </j:if> > Ability to merge other war files as dependencies > ------------------------------------------------ > > Key: MPWAR-41 > URL: http://jira.codehaus.org/browse/MPWAR-41 > Project: maven-war-plugin > Type: New Feature > Versions: 1.6 > Reporter: Grégory Joseph (old account) > Attachments: maven-war-includewar.patch > > > In a project I'm working on, we need to be able to separate parts of our web > applications, to be able to build different versions, with or without certain > features. > Since some of these "parts" use jsp's, have specific dependencies, etc... we > can't just build them as jars. > I've made the attached patch in order to be able to specify a dependency of > type war and have it included in my "master" war. > Note that for this to work, the dependent war should not have a web.xml, for > instance. As it is, it simply unwar's the dependency in the main build > directory. It might be desired to actually run this *before* copying the > resources from the master project, so that at least they don't get > overwritten by the dependencies'. > Currently, the META-INF content and the web.xml are excluded from the unwar > task, maybe more excludes should be added? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]