Initial commit of RAR plugin
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115485 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
1d0760e64c
commit
8cb2a3ea30
17 files changed
+656
No files matched your search
@@ -0,0 +1,2 @@
|
||||
target
|
||||
*.log
|
||||
@@ -0,0 +1 @@
|
||||
The FOO license, version -2
|
||||
@@ -0,0 +1,55 @@
|
||||
<!--
|
||||
/*
|
||||
* Copyright 2001-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">
|
||||
|
||||
<goal name="testPlugin" prereqs="test-rar">
|
||||
<attainGoal name="clean"/>
|
||||
</goal>
|
||||
|
||||
<goal name="test-rar">
|
||||
<attainGoal name="rar"/>
|
||||
|
||||
<!-- tests that the ear is generated -->
|
||||
<assert:assertFileExists file="${maven.build.dir}/test-maven-rar-plugin-1.0-SNAPSHOT.rar"/>
|
||||
|
||||
<!-- unzip the ear and look for the jars -->
|
||||
<j:set var="rarFile"
|
||||
value="${maven.build.dir}/test-maven-rar-plugin-1.0-SNAPSHOT.rar"/>
|
||||
<j:set var="unzipDir" value= "${maven.build.dir}/rartest"/>
|
||||
<mkdir dir="${unzipDir}"/>
|
||||
<unzip src="${rarFile}" dest="${unzipDir}"/>
|
||||
|
||||
<!-- check for commons-logging -->
|
||||
<assert:assertFileExists file="${unzipDir}/commons-logging-1.0.3.jar"
|
||||
msg="commons logging was not bundled"/>
|
||||
|
||||
<!-- check for the LICENSE -->
|
||||
<assert:assertFileExists file="${unzipDir}/META-INF/LICENSE.txt"
|
||||
msg="License file not bundled"/>
|
||||
|
||||
<!-- check for the ra.xml -->
|
||||
<assert:assertFileExists file="${unzipDir}/META-INF/ra.xml"
|
||||
msg="ra.xml missing"/>
|
||||
|
||||
<!-- check for the fooserver-ra.xml -->
|
||||
<assert:assertFileExists file="${unzipDir}/META-INF/fooserver-ra.xml"
|
||||
msg="fooserver deployment descriptor missing"/>
|
||||
|
||||
</goal>
|
||||
</project>
|
||||
@@ -0,0 +1,20 @@
|
||||
# -------------------------------------------------------------------
|
||||
# Copyright 2001-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.deployable.component=${maven.final.name}.rar
|
||||
# note the override below is needed, as the ear plugin redefines the licenseFile in
|
||||
# it's own project.properties, and running plugin:test would otherwise fail
|
||||
#maven.license.licenseFile=${basedir}/LICENSE.txt
|
||||
@@ -0,0 +1,70 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
/*
|
||||
* Copyright 2001-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>Test project for Maven Rar Plugin</name>
|
||||
<id>test-maven-rar-plugin</id>
|
||||
<currentVersion>1.0-SNAPSHOT</currentVersion>
|
||||
<organization>
|
||||
<name>foo</name>
|
||||
<url>http://www.foo.net</url>
|
||||
</organization>
|
||||
<inceptionYear>2004</inceptionYear>
|
||||
<package>org.fooserver</package>
|
||||
<shortDescription>test for rar plugin</shortDescription>
|
||||
<description>test for rar plugin</description>
|
||||
<url/>
|
||||
<issueTrackingUrl>http://bugzilla</issueTrackingUrl>
|
||||
<siteAddress>www.fooserver.org</siteAddress>
|
||||
<siteDirectory/>
|
||||
<distributionDirectory/>
|
||||
<repository>
|
||||
<connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven</connection>
|
||||
<url>http://cvs.apache.org/viewcvs/maven/</url>
|
||||
</repository>
|
||||
<versions/>
|
||||
<mailingLists/>
|
||||
<developers>
|
||||
<developer>
|
||||
<name>David Jencks</name>
|
||||
<id>djencks</id>
|
||||
<email>djencks at apache.org</email>
|
||||
<organization>none</organization>
|
||||
<role>Java Developer</role>
|
||||
</developer>
|
||||
</developers>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>commons-logging</groupId>
|
||||
<artifactId>commons-logging</artifactId>
|
||||
<version>1.0.3</version>
|
||||
<url>http://jakarta.apache.org/commons/logging.html</url>
|
||||
<properties>
|
||||
<rar.bundle>true</rar.bundle>
|
||||
</properties>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<nagEmailAddress>noone@nowhere</nagEmailAddress>
|
||||
<sourceDirectory>src/java</sourceDirectory>
|
||||
<unitTestSourceDirectory>src/test</unitTestSourceDirectory>
|
||||
</build>
|
||||
</project>
|
||||
@@ -0,0 +1,27 @@
|
||||
package org.fooserver;
|
||||
|
||||
/* ====================================================================
|
||||
* Copyright 2001-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.
|
||||
* ====================================================================
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @version $Revision: 1.1 $ $Date: 2004/06/17 02:51:53 $
|
||||
*
|
||||
*/
|
||||
public class NonManagedConnectionFactory {
|
||||
}
|
||||
Whitespace-only changes.
Whitespace-only changes.
Reference in new issue
Block a user