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:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user