- Check to make sure maven.ear.src exists before using it.

- Allow resources in the pom for EAR projects
- remove debug echos
- add a test for resources in the pom


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114909 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
dion committed 2004-03-15 10:54:10 +00:00
1 parent 54b32ae119
commit 9cc0520f8e
7 files changed
+40 -9

No files matched your search

+8 -3
View File
@@ -56,16 +56,21 @@
<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'}">
<fail>
commons-collections-2.1.jar not bundled as a java module found '${firstJavaModule}' instead
</fail>
</j:if>
<!-- check for resources -->
<j:set var="expectedFile" value="${unzipDir}/resource.txt"/>
<u:file var="file" name="${expectedFile}" />
<j:if test="${!(file.exists())}">
<fail>${expectedFile} not bundled as a resource</fail>
</j:if>
</goal>
</project>
+7
View File
@@ -88,5 +88,12 @@
<sourceDirectory>src</sourceDirectory>
<unitTestSourceDirectory>src/test</unitTestSourceDirectory>
<!-- Resources that are packaged up inside the JAR file -->
<resources>
<resource>
<directory>src/resources</directory>
<targetPath></targetPath>
<includes><include>*.txt</include></includes>
</resource>
</resources>
</build>
</project>
@@ -0,0 +1 @@
This is a dummy file