MPECLIPSE-50 Support for Eclipse-Plugin maven projects (or kind="con" classpath)
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@116152 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
1545d2f6f5
commit
ac4c80304a
4 files changed
+29
-2
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,test-classpath-has-overridden-jar,test-noduplicates">
|
||||
<goal name="testPlugin" prereqs="test-eclipse,test-natures,test-builders,test-natures-and-builders,test-classpath-has-generated-source,test-classpath-has-overridden-jar,test-noduplicates,test-classpath-con-entry">
|
||||
</goal>
|
||||
|
||||
<goal name="test-init">
|
||||
@@ -141,5 +141,18 @@
|
||||
<x:set var="countUniqueSrc" select="count($classpathDoc/classpath/classpathentry[contains(@path,'src/main')])"/>
|
||||
<assert:assertEquals expected="1" value="${countUniqueSrc.intValue().toString()}" msg="Src directory should be added only once"/>
|
||||
</goal>
|
||||
|
||||
<goal name="test-classpath-con-entry">
|
||||
<attainGoal name="test-init"/>
|
||||
<j:set var="maven.eclipse.conclasspath" value="org.eclipse.pde.core.requiredPlugins"/>
|
||||
<attainGoal name="eclipse"/>
|
||||
|
||||
<assert:assertFileExists file="${dotClasspath}" />
|
||||
|
||||
<u:file var="classpathFile" name="${dotClasspath}"/>
|
||||
<x:parse var="classpathDoc" xml="${classpathFile.toURL()}" />
|
||||
<x:set var="countConEntries" select="count($classpathDoc/classpath/classpathentry[contains(@kind,'con')])"/>
|
||||
<assert:assertEquals expected="2" value="${countConEntries.intValue().toString()}" msg="Classpath entry kind='con' should be added twice, once mandatory, other variable"/>
|
||||
</goal>
|
||||
|
||||
</project>
|
||||
Reference in new issue
Block a user