You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jason van Zyl (JIRA)" <ji...@codehaus.org> on 2006/05/31 03:52:50 UTC
[jira] Updated: (MPWAR-16) war plugin cannot add other files to
web-inf without workaround
[ http://jira.codehaus.org/browse/MPWAR-16?page=all ]
Jason van Zyl updated MPWAR-16:
-------------------------------
Assign To: (was: Jason van Zyl)
> war plugin cannot add other files to web-inf without workaround
> ---------------------------------------------------------------
>
> Key: MPWAR-16
> URL: http://jira.codehaus.org/browse/MPWAR-16
> Project: maven-war-plugin
> Type: Improvement
> Environment: maven 1.0 rc-1
> war plugin 1.4 and 1.5 SNAPSHOT
> Reporter: Tim Chen
>
> Original Estimate: 30 minutes
> Remaining: 30 minutes
>
> Consider a struts war which might have:
> WEB-INF/
> web.xml
> struts-config.xml
> The current war plugin does not allow you to copy struts-config.xml into WEB-INF without a maven.xml postgoal hack.
> A possible patch would be to add the following to war:webapp
> <ant:copy todir="${webapp.build.webinf}">
> <ant:fileset dir="${maven.war.webxml.src}"
> includes="${maven.war.webxml.src.includes}"
> excludes="${maven.war.webxml.src.excludes}"/>
> </ant:copy>
> an example project.properties using this would be:
> maven.xdoc.date=left
> maven.xdoc.version=${pom.currentVersion}
> maven.multiproject.type=war
> maven.xdoclet.webdoclet.destDir=${maven.build.dir}/xdoclet/webdoclet/WEB-INF
> maven.xdoclet.webdoclet.mergeDir=${maven.src.dir}/merge
> maven.xdoclet.webdoclet.fileset.0.include=**/*.java
> maven.xdoclet.webdoclet.strutsconfigxml.0=true
> maven.xdoclet.webdoclet.strutsconfigxml.0.Version=1.1
> maven.xdoclet.webdoclet.strutsconfigxml.0.mergeDir=${maven.src.dir}/merge
> maven.xdoclet.webdoclet.jsptaglib.0=false
> maven.war.src=${maven.xdoclet.webdoclet.dir}
> maven.war.webxml=${maven.xdoclet.webdoclet.destDir}/web.xml
> maven.war.webxml.src=${maven.xdoclet.webdoclet.destDir}
> maven.war.webxml.src.includes=struts*.xml
> The proposed patch could be enhanced by ignoring web.xml if it is in the same directory etc.
--
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