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:
1 parent
c6cf6b484d
commit
7c52f2c6d5
1 file changed
+8
-6
+8
-6
@@ -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