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:
1 parent
ebb0fc9496
commit
2e8a3d4c4d
3 files changed
+20
-1
No files matched your search
@@ -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>
|
||||
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user