You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by be...@apache.org on 2008/09/16 13:44:34 UTC
svn commit: r695818 - in /maven/plugins/trunk/maven-rar-plugin: ./ src/it/
src/it/default/ src/it/default/src/ src/it/default/src/main/
src/it/default/src/main/custom/ src/it/default/src/main/rar/
Author: bentmann
Date: Tue Sep 16 04:44:33 2008
New Revision: 695818
URL: http://svn.apache.org/viewvc?rev=695818&view=rev
Log:
o Migrated core IT 0070 over to the corresponding plugin project
Added:
maven/plugins/trunk/maven-rar-plugin/src/it/
maven/plugins/trunk/maven-rar-plugin/src/it/default/
maven/plugins/trunk/maven-rar-plugin/src/it/default/pom.xml (with props)
maven/plugins/trunk/maven-rar-plugin/src/it/default/src/
maven/plugins/trunk/maven-rar-plugin/src/it/default/src/main/
maven/plugins/trunk/maven-rar-plugin/src/it/default/src/main/custom/
maven/plugins/trunk/maven-rar-plugin/src/it/default/src/main/custom/ra.xml (with props)
maven/plugins/trunk/maven-rar-plugin/src/it/default/src/main/rar/
maven/plugins/trunk/maven-rar-plugin/src/it/default/src/main/rar/SomeResource.txt (with props)
maven/plugins/trunk/maven-rar-plugin/src/it/default/verify.bsh (with props)
maven/plugins/trunk/maven-rar-plugin/src/it/settings.xml (with props)
Modified:
maven/plugins/trunk/maven-rar-plugin/pom.xml
Modified: maven/plugins/trunk/maven-rar-plugin/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-rar-plugin/pom.xml?rev=695818&r1=695817&r2=695818&view=diff
==============================================================================
--- maven/plugins/trunk/maven-rar-plugin/pom.xml (original)
+++ maven/plugins/trunk/maven-rar-plugin/pom.xml Tue Sep 16 04:44:33 2008
@@ -1,4 +1,5 @@
-<?xml version='1.0' encoding='UTF-8'?>
+<?xml version="1.0" encoding="UTF-8"?>
+
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
@@ -8,7 +9,7 @@
"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
+ 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
@@ -16,8 +17,8 @@
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-
-->
+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
@@ -84,20 +85,28 @@
<build>
<plugins>
<plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
+ <artifactId>maven-invoker-plugin</artifactId>
+ <configuration>
+ <debug>true</debug>
+ <projectsDirectory>src/it</projectsDirectory>
+ <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
+ <pomIncludes>
+ <pomInclude>*/pom.xml</pomInclude>
+ </pomIncludes>
+ <preBuildHookScript>setup.bsh</preBuildHookScript>
+ <postBuildHookScript>verify.bsh</postBuildHookScript>
+ <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
+ <settingsFile>src/it/settings.xml</settingsFile>
+ <goals>
+ <goal>clean</goal>
+ <goal>package</goal>
+ </goals>
+ </configuration>
<executions>
<execution>
<id>integration-test</id>
- <phase>integration-test</phase>
- <configuration>
- <tasks>
- <echo/><echo/><echo/><echo/><echo/>
- <echo level="warning">NO INTEGRATION TESTS DEFINED</echo>
- <echo/><echo/><echo/><echo/><echo/>
- </tasks>
- </configuration>
<goals>
+ <goal>install</goal>
<goal>run</goal>
</goals>
</execution>
@@ -108,4 +117,3 @@
</profile>
</profiles>
</project>
-
Added: maven/plugins/trunk/maven-rar-plugin/src/it/default/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-rar-plugin/src/it/default/pom.xml?rev=695818&view=auto
==============================================================================
--- maven/plugins/trunk/maven-rar-plugin/src/it/default/pom.xml (added)
+++ maven/plugins/trunk/maven-rar-plugin/src/it/default/pom.xml Tue Sep 16 04:44:33 2008
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you 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>
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.maven.its.it0070</groupId>
+ <artifactId>maven-it-it0070</artifactId>
+ <version>1.0</version>
+ <packaging>rar</packaging>
+
+ <name>Maven Integration Test :: it0070</name>
+ <description>Test a RAR generation.</description>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-rar-plugin</artifactId>
+ <version>@project.version@</version>
+ <configuration>
+ <includeJar>false</includeJar>
+ <raXmlFile>src/main/custom/ra.xml</raXmlFile>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Propchange: maven/plugins/trunk/maven-rar-plugin/src/it/default/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-rar-plugin/src/it/default/pom.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/plugins/trunk/maven-rar-plugin/src/it/default/src/main/custom/ra.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-rar-plugin/src/it/default/src/main/custom/ra.xml?rev=695818&view=auto
==============================================================================
--- maven/plugins/trunk/maven-rar-plugin/src/it/default/src/main/custom/ra.xml (added)
+++ maven/plugins/trunk/maven-rar-plugin/src/it/default/src/main/custom/ra.xml Tue Sep 16 04:44:33 2008
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<connector>
+ <fake-content></fake-content>
+</connector>
\ No newline at end of file
Propchange: maven/plugins/trunk/maven-rar-plugin/src/it/default/src/main/custom/ra.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-rar-plugin/src/it/default/src/main/custom/ra.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/plugins/trunk/maven-rar-plugin/src/it/default/src/main/rar/SomeResource.txt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-rar-plugin/src/it/default/src/main/rar/SomeResource.txt?rev=695818&view=auto
==============================================================================
(empty)
Propchange: maven/plugins/trunk/maven-rar-plugin/src/it/default/src/main/rar/SomeResource.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-rar-plugin/src/it/default/src/main/rar/SomeResource.txt
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/plugins/trunk/maven-rar-plugin/src/it/default/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-rar-plugin/src/it/default/verify.bsh?rev=695818&view=auto
==============================================================================
--- maven/plugins/trunk/maven-rar-plugin/src/it/default/verify.bsh (added)
+++ maven/plugins/trunk/maven-rar-plugin/src/it/default/verify.bsh Tue Sep 16 04:44:33 2008
@@ -0,0 +1,40 @@
+import java.io.*;
+import java.util.*;
+import java.util.jar.*;
+import java.util.regex.*;
+
+try
+{
+ File jarFile = new File( basedir, "target/maven-it-it0070-1.0.rar" );
+ System.out.println( "Checking for existence of " + jarFile );
+ if ( !jarFile.isFile() )
+ {
+ System.out.println( "FAILURE!" );
+ return false;
+ }
+
+ JarFile jar = new JarFile( jarFile );
+
+ String[] includedEntries = {
+ "META-INF/ra.xml",
+ "SomeResource.txt",
+ };
+ for ( String included : includedEntries )
+ {
+ System.out.println( "Checking for existence of " + included );
+ if ( jar.getEntry( included ) == null )
+ {
+ System.out.println( "FAILURE!" );
+ return false;
+ }
+ }
+
+ jar.close();
+}
+catch( Throwable t )
+{
+ t.printStackTrace();
+ return false;
+}
+
+return true;
Propchange: maven/plugins/trunk/maven-rar-plugin/src/it/default/verify.bsh
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-rar-plugin/src/it/default/verify.bsh
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/plugins/trunk/maven-rar-plugin/src/it/settings.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-rar-plugin/src/it/settings.xml?rev=695818&view=auto
==============================================================================
--- maven/plugins/trunk/maven-rar-plugin/src/it/settings.xml (added)
+++ maven/plugins/trunk/maven-rar-plugin/src/it/settings.xml Tue Sep 16 04:44:33 2008
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you 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.
+-->
+
+<settings>
+ <profiles>
+ <profile>
+ <id>it-repo</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <repositories>
+ <repository>
+ <id>local.central</id>
+ <url>file:///@localRepository@</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>apache.snapshots</id>
+ <name>Apache Snapshot Repository</name>
+ <url>http://people.apache.org/repo/m2-snapshot-repository</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+ <pluginRepositories>
+ <pluginRepository>
+ <id>local.central</id>
+ <url>file:///@localRepository@</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </pluginRepository>
+ </pluginRepositories>
+ </profile>
+ </profiles>
+</settings>
Propchange: maven/plugins/trunk/maven-rar-plugin/src/it/settings.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-rar-plugin/src/it/settings.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision