Test if sources is present before copy classes in webapp.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113792 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
evenisse
2003-08-05 09:14:26 +00:00
parent c6cf6b484d
commit 7c52f2c6d5

View File

@@ -121,12 +121,14 @@
<!-- END OF TO BE REMOVED -->
</j:forEach>
<ant:copy todir="${webapp.build.classes}">
<ant:fileset dir="${maven.build.dest}">
<ant:include name="${maven.war.classes.includes}" />
<ant:exclude name="${maven.war.classes.excludes}" />
</ant:fileset>
</ant:copy>
<j:if test="${sourcesPresent == 'true'}">
<ant:copy todir="${webapp.build.classes}">
<ant:fileset dir="${maven.build.dest}">
<ant:include name="${maven.war.classes.includes}" />
<ant:exclude name="${maven.war.classes.excludes}" />
</ant:fileset>
</ant:copy>
</j:if>
</goal>