renamed test directories
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@124778 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
27f8075ac8
commit
248f0229cc
27 files changed
+15
-15
No files matched your search
@@ -0,0 +1,69 @@
|
||||
<!--
|
||||
/*
|
||||
* Copyright 2004 The Apache Software Foundation.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
-->
|
||||
<project xmlns:j="jelly:core"
|
||||
xmlns:assert="assert"
|
||||
xmlns:util="jelly:util"
|
||||
xmlns:x="jelly:xml"
|
||||
default="testPlugin">
|
||||
|
||||
<goal name="testPlugin" prereqs="ear,test-ear">
|
||||
<attainGoal name="clean"/>
|
||||
</goal>
|
||||
|
||||
<goal name="test-ear">
|
||||
|
||||
<!-- tests that the ear is generated -->
|
||||
<assert:assertFileExists file="${maven.build.dir}/${maven.final.name}.ear"/>
|
||||
|
||||
<!-- unzip the ear and look for the jars -->
|
||||
<j:set var="earFile"
|
||||
value="${maven.build.dir}/${maven.final.name}.ear"/>
|
||||
<j:set var="unzipDir" value= "${maven.build.dir}/eartest"/>
|
||||
<mkdir dir="${unzipDir}"/>
|
||||
<unzip src="${earFile}" dest="${unzipDir}"/>
|
||||
|
||||
<!-- check for commons-logging -->
|
||||
<j:set var="commonsExpectedPath" value="/APP-INF/lib/commons-logging-1.0.3.jar"/>
|
||||
<assert:assertFileExists file="${unzipDir}${commonsExpectedPath}"
|
||||
msg="commons-logging was not bundled"/>
|
||||
|
||||
<!-- check that commons-collections has been packaged in the right place-->
|
||||
<assert:assertFileExists file="${unzipDir}/commons-collections-2.1.jar"
|
||||
msg="commons-collections was bundled incorrectly"/>
|
||||
|
||||
<!-- check that commons-digester has been packaged in the right place-->
|
||||
<assert:assertFileExists file="${unzipDir}/commons-digester.jar"
|
||||
msg="commons-digester was bundled incorrectly"/>
|
||||
|
||||
<!-- check that log4j has been packaged in the right place-->
|
||||
<assert:assertFileExists file="${unzipDir}/APP-INF/lib/LOG4J.JAR"
|
||||
msg="log4j was bundled incorrectly"/>
|
||||
|
||||
<!-- check that the application.xml was generated -->
|
||||
<j:set var="appXml" value="${unzipDir}/META-INF/application.xml"/>
|
||||
<assert:assertFileExists file="${appXml}"
|
||||
msg="application.xml was not generated"/>
|
||||
|
||||
<!-- check that commons-logging was set with the right path -->
|
||||
<util:file var="appXmlFile" name="${appXml}"/>
|
||||
<x:parse var="appXmlDoc" xml="${appXmlFile}"/>
|
||||
<x:set var="commonsLogging" select="string($appXmlDoc/application/module/java)"/>
|
||||
<assert:assertEquals expected="${commonsExpectedPath}" value="${commonsLogging}"/>
|
||||
|
||||
</goal>
|
||||
</project>
|
||||
@@ -0,0 +1,16 @@
|
||||
# -------------------------------------------------------------------
|
||||
# Copyright 2004 The Apache Software Foundation.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
# -------------------------------------------------------------------
|
||||
maven.ear.appxml.generate=true
|
||||
@@ -0,0 +1,90 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
/*
|
||||
* Copyright 2004 The Apache Software Foundation.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
-->
|
||||
|
||||
|
||||
<project>
|
||||
<pomVersion>3</pomVersion>
|
||||
<name>Ear Plugin - Bundle Properties Test</name>
|
||||
<artifactId>test-maven-ear-plugin-bundlePropertiesTest</artifactId>
|
||||
<organization>
|
||||
<name>Queensland Government</name>
|
||||
<url>www.qld.gov.au</url>
|
||||
</organization>
|
||||
<inceptionYear>2004</inceptionYear>
|
||||
<package>au.gov.qld</package>
|
||||
<shortDescription>Test for new properties ear.bundle.name and ear.bundle.dir</shortDescription>
|
||||
<description>Tests if a dependency which has the properties ear.bundle.name or ear.bundle.dir it is properly bundled in the EAR (see issues MPEAR-26 and MPEAR-23)</description>
|
||||
<url/>
|
||||
<developers>
|
||||
<developer>
|
||||
<name>Wiley Fuller</name>
|
||||
<id>wfuller</id>
|
||||
<email>wfuller@...</email>
|
||||
<organization>Queensland Government</organization>
|
||||
<role>Java Developer</role>
|
||||
</developer>
|
||||
<developer>
|
||||
<name>Felipe Leme</name>
|
||||
<id>felipeal</id>
|
||||
<role>Jelly Developer</role>
|
||||
</developer>
|
||||
</developers>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>commons-logging</groupId>
|
||||
<artifactId>commons-logging</artifactId>
|
||||
<version>1.0.3</version>
|
||||
<properties>
|
||||
<ear.bundle.dir>/APP-INF/lib</ear.bundle.dir>
|
||||
<ear.module>true</ear.module>
|
||||
</properties>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-collections</groupId>
|
||||
<artifactId>commons-collections</artifactId>
|
||||
<version>2.1</version>
|
||||
<properties>
|
||||
<ear.bundle>true</ear.bundle>
|
||||
</properties>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-digester</groupId>
|
||||
<artifactId>commons-digester</artifactId>
|
||||
<version>1.6</version>
|
||||
<properties>
|
||||
<ear.bundle>true</ear.bundle>
|
||||
<ear.bundle.name>commons-digester.jar</ear.bundle.name>
|
||||
</properties>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>log4j</groupId>
|
||||
<artifactId>log4j</artifactId>
|
||||
<version>1.2.8</version>
|
||||
<properties>
|
||||
<ear.bundle>true</ear.bundle>
|
||||
<ear.bundle.name>LOG4J.JAR</ear.bundle.name>
|
||||
<ear.bundle.dir>/APP-INF/lib</ear.bundle.dir>
|
||||
</properties>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<sourceDirectory>${basedir}/src</sourceDirectory>
|
||||
<unitTestSourceDirectory>${basedir}/src/test</unitTestSourceDirectory>
|
||||
</build>
|
||||
</project>
|
||||
Reference in new issue
Block a user