MPECLIPSE-36 JUnit jar not add in a specific condition

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115939 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
epugh committed 2004-08-09 14:28:15 +00:00
1 parent 953bb7ced0
commit 41215bebdb
4 files changed
+20 -7

No files matched your search

@@ -64,7 +64,8 @@
<maven:makeRelativePath var="srcDir" basedir="${basedir}" path="${res}" />
<classpathentry kind="src" path="${srcDir}"/>
</j:forEach>
<!-- set a flag so JUnit jar is included only once -->
<j:set var="ignoreJUnit" value="false" />
<j:if test="${unitTestSourcesPresent}">
<ant:echo>Contains JUnit tests</ant:echo>
<maven:makeRelativePath var="testSrcDir" basedir="${basedir}" path="${pom.build.unitTestSourceDirectory}"/>
@@ -105,6 +106,7 @@
</j:if>
<j:if test="${depVersion != 'none'}">
<j:set var="ignoreJUnit" value="true" />
<classpathentry kind="var" path="MAVEN_REPO/junit/jars/junit-${depVersion}.jar"/>
</j:if>
</j:if>
@@ -135,7 +137,7 @@
<j:when test="${eclipseDependency == 'false'}">
<!-- ignore specific dependencies -->
</j:when>
<j:when test="${lib.dependency.groupId == 'junit'}">
<j:when test="${lib.dependency.groupId == 'junit' and ignoreJUnit}">
<!-- ignoring junit dependency as we've already created it -->
</j:when>
<j:otherwise>