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 2004-03-02 11:10:32 +00:00
parent 8fa4359116
commit 33459ab9ff
5 changed files with 29 additions and 7 deletions

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>

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>

View File

@ -39,4 +39,11 @@
</ant:warvalidator>
</goal>
<define:taglib uri="j2ee">
<define:tag name="resolver">
<j:new var="resolver" className="org.apache.maven.j2ee.J2EEEntityResolver" />
<j:set var="${var}" value="${resolver}" scope="parent" />
</define:tag>
</define:taglib>
</project>

View File

@ -5,7 +5,7 @@
<pomVersion>3</pomVersion>
<id>maven-j2ee-plugin</id>
<name>Maven J2EE Plugin</name>
<currentVersion>1.3</currentVersion>
<currentVersion>1.4-SNAPSHOT</currentVersion>
<description/>
<shortDescription>J2EE tools</shortDescription>
<url>http://maven.apache.org/reference/plugins/j2ee/</url>

View File

@ -7,6 +7,12 @@
</properties>
<body>
<release version="1.4-SNAPSHOT" date="in CVS">
<action dev="brett" type="fix">
Add tag to get a J2EE Entity Resolver for use in other plugins
</action>
</release>
<release version="1.3" date="2003-09-29">
<action dev="dion" type="update">
Upgrade to dom4j 1.4