patch didn't work properly.

source modifications only applied if class actually missing


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115047 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
brett committed 2004-04-25 03:15:28 +00:00
1 parent 453a3f0448
commit e8bf7f313a
2 files changed
+14 -5

No files matched your search

@@ -31,11 +31,20 @@
<maven:makeRelativePath var="srcDir" basedir="${basedir}" path="${pom.build.sourceDirectory}"/>
<j:set var="excluding" value=""/>
<j:forEach var="sm" items="${pom.build.sourceModifications}">
<j:forEach var="exclude" items="${sm.excludes}">
<j:set var="excluding" value="${excluding},${exclude}"/>
</j:forEach>
<ant:available property="classPresent" classname="${sm.className}"/>
<j:if test="${classPresent != 'true'}">
<j:forEach var="exclude" items="${sm.excludes}">
<j:choose>
<j:when test="${excluding.length() == 0}">
<j:set var="excluding" value="${exclude}"/>
</j:when>
<j:otherwise>
<j:set var="excluding" value="${excluding},${exclude}"/>
</j:otherwise>
</j:choose>
</j:forEach>
</j:if>
</j:forEach>
<j:set var="excluding">${excluding.substring(1)}</j:set>
<classpathentry kind="src" path="${srcDir}" excluding="${excluding}" />
</j:if>