PR: MPEAR-16

make test run offline


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114774 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
brett committed 2004-03-02 11:10:32 +00:00
1 parent 8fa4359116
commit 33459ab9ff
5 files changed
+29 -7

No files matched your search

+8 -3
View File
@@ -1,4 +1,4 @@
<project xmlns:j="jelly:core" xmlns:u="jelly:util" xmlns:x="jelly:xml">
<project xmlns:j="jelly:core" xmlns:u="jelly:util" xmlns:x="jelly:xml" xmlns:j2ee="j2ee">
<goal name="testPlugin" prereqs="test-ear">
<attainGoal name="clean"/>
@@ -36,7 +36,12 @@
<!-- check application.xml got a java module in it -->
<u:file var="appXml" name="${unzipDir}/META-INF/application.xml"/>
<x:parse var="applicationDoc" xml="${appXml.toURL()}"/>
<j:new var="saxReader" className="org.dom4j.io.SAXReader" />
<j2ee:resolver var="resolver" />
${saxReader.setEntityResolver(resolver)}
<echo>${resolver}</echo>
<echo>${saxReader.entityResolver}</echo>
<x:parse var="applicationDoc" xml="${appXml.toURL()}" SAXReader="${saxReader}" />
<x:set var="firstJavaModule" select="string($applicationDoc/application/module/java)"/>
<echo>output is ${a}</echo>
<j:if test="${firstJavaModule != 'commons-collections-2.1.jar'}">
@@ -46,4 +51,4 @@
</j:if>
</goal>
</project>
</project>
+7 -3
View File
@@ -56,9 +56,13 @@
<groupId>commons-jelly</groupId>
<artifactId>commons-jelly-tags-xml</artifactId>
<version>20030211.142705</version>
<properties>
<classloader>root.maven</classloader>
</properties>
</dependency>
<!-- Needed for the entity resolver -->
<dependency>
<groupId>maven</groupId>
<artifactId>maven-j2ee-plugin</artifactId>
<version>1.3</version>
<type>plugin</type>
</dependency>
</dependencies>
<build>