MPECLIPSE-38 Jar overrides are not supported. Unit test to verify fix

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@116068 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
epugh
2004-09-24 12:22:15 +00:00
parent ebb0fc9496
commit 2e8a3d4c4d
3 changed files with 20 additions and 1 deletions

View File

@@ -20,7 +20,7 @@
xmlns:u="jelly:util"
xmlns:x="jelly:xml">
<goal name="testPlugin" prereqs="test-eclipse,test-natures,test-builders,test-natures-and-builders,test-classpath-has-generated-source">
<goal name="testPlugin" prereqs="test-eclipse,test-natures,test-builders,test-natures-and-builders,test-classpath-has-generated-source,test-classpath-has-overridden-jar">
</goal>
<goal name="test-init">
@@ -114,5 +114,18 @@
<assert:assertEquals expected="3" value="${count.intValue().toString()}"/>
</goal>
<goal name="test-classpath-has-overridden-jar">
<attainGoal name="test-init"/>
<attainGoal name="eclipse"/>
<assert:assertFileExists file="${dotClasspath}" />
<u:file var="classpathFile" name="${dotClasspath}"/>
<x:parse var="classpathDoc" xml="${classpathFile.toURL()}" />
<x:set var="count" select="count($classpathDoc/classpath/classpathentry[contains(@path,'MAVEN_REPO/maven/jars/maven.jar')])"/>
<assert:assertEquals expected="1" value="${count.intValue().toString()}"/>
</goal>
</project>

View File

@@ -53,6 +53,11 @@
</developers>
<dependencies>
<dependency>
<id>maven</id>
<version>beta-8</version>
<jar>maven.jar</jar>
</dependency>
<dependency>
<groupId>commons-jelly</groupId>
<artifactId>commons-jelly-tags-xml</artifactId>

View File

@@ -25,6 +25,7 @@
</properties>
<body>
<release version="1.9" date="in cvs">
<action dev="epugh" type="fix" issue="MPECLIPSE-38">Jar overrides are not supported. Unit test to verify fix</action>
</release>
<release version="1.8" date="2004-08-14">
<action dev="epugh" type="fix" issue="MPECLIPSE-37" due-to="Felipe Leme">Fixed a 'race condition' where Cactus dependency is added twice to .classpath.</action>