From e4c0d4dad8a6a2bcdbd54bb5211393688e7e1c80 Mon Sep 17 00:00:00 2001 From: smor Date: Fri, 21 Mar 2003 01:26:29 +0000 Subject: [PATCH] o Added a property to specify the directory of the webapp dir. o Documented the new property in properties.xml In some cases it might be different from the war dir, so this allows one to change it in its project.properties file. It defaults to ${maven.war.build.dir}/${pom.artifactId}. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113164 13f79535-47bb-0310-9956-ffa450edef68 --- war/plugin.jelly | 7 +++---- war/plugin.properties | 5 ++++- war/xdocs/properties.xml | 10 +++++++++- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/war/plugin.jelly b/war/plugin.jelly index a451bc8c..dee41688 100644 --- a/war/plugin.jelly +++ b/war/plugin.jelly @@ -95,10 +95,9 @@ Assembling webapp ${pom.artifactId} - - + - + @@ -108,7 +107,7 @@ - + diff --git a/war/plugin.properties b/war/plugin.properties index c5168e54..bc4d23cd 100644 --- a/war/plugin.properties +++ b/war/plugin.properties @@ -12,6 +12,9 @@ maven.war.webxml=${maven.war.src}/WEB-INF/web.xml # Note: Classes are relative to build.dir maven.war.classes.includes=** maven.war.classes.excludes=**/package.html -# Location where the webapp or the war will be created. Defaults to +# Location where the war will be created. Defaults to # ${maven.build.dir} maven.war.build.dir = ${maven.build.dir} +# Location where the webapp will be created. Defaults to +# ${maven.war.build.dir}/${pom.artifactId} +maven.war.webapp.dir = ${maven.war.build.dir}/${pom.artifactId} diff --git a/war/xdocs/properties.xml b/war/xdocs/properties.xml index 280a6eae..77e5fac0 100644 --- a/war/xdocs/properties.xml +++ b/war/xdocs/properties.xml @@ -50,10 +50,18 @@ maven.war.build.dir Yes - Directory where the webapp and war will be generated. It defaults + Directory where the war will be generated. It defaults to ${maven.build.dir}. + + maven.war.webapp.dir + Yes + + Directory where the webapp will be generated. It defaults to + ${maven.war.build.dir}/${pom.artifactId}. + +