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
This commit is contained in:
smor
2003-03-21 01:26:29 +00:00
parent 5701f7178e
commit e4c0d4dad8
3 changed files with 16 additions and 6 deletions

View File

@@ -95,10 +95,9 @@
<echo>Assembling webapp ${pom.artifactId}</echo>
<property name="webapp.build" value="${maven.war.build.dir}/${pom.artifactId}"/>
<mkdir dir="${webapp.build}"/>
<mkdir dir="${maven.war.webapp.dir}"/>
<property name="webapp.build.webinf" value="${webapp.build}/WEB-INF"/>
<property name="webapp.build.webinf" value="${maven.war.webapp.dir}/WEB-INF"/>
<mkdir dir="${webapp.build.webinf}"/>
<property name="webapp.build.lib" value="${webapp.build.webinf}/lib"/>
@@ -108,7 +107,7 @@
<mkdir dir="${webapp.build.classes}"/>
<j:if test="${webSourcesPresent == 'true'}">
<copy todir="${webapp.build}">
<copy todir="${maven.war.webapp.dir}">
<fileset dir="${maven.war.src}"/>
</copy>
</j:if>