You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@creadur.apache.org by rd...@apache.org on 2012/01/17 20:00:16 UTC
svn commit: r1232534 - in
/incubator/rat/whisker/trunk/apache-whisker-plugin4maven: pom.xml src/it/
src/it/settings.xml src/it/smoke4generate/
src/it/smoke4generate/descriptor.xml src/it/smoke4generate/pom.xml
src/it/smoke4generate/verify.bsh
Author: rdonkin
Date: Tue Jan 17 19:00:16 2012
New Revision: 1232534
URL: http://svn.apache.org/viewvc?rev=1232534&view=rev
Log:
Added a basic integration test. Run using mvn integration-test.
Added:
incubator/rat/whisker/trunk/apache-whisker-plugin4maven/src/it/
incubator/rat/whisker/trunk/apache-whisker-plugin4maven/src/it/settings.xml (with props)
incubator/rat/whisker/trunk/apache-whisker-plugin4maven/src/it/smoke4generate/
incubator/rat/whisker/trunk/apache-whisker-plugin4maven/src/it/smoke4generate/descriptor.xml
- copied unchanged from r1232510, incubator/rat/whisker/trunk/src/site/resources/examples/james.xml
incubator/rat/whisker/trunk/apache-whisker-plugin4maven/src/it/smoke4generate/pom.xml (with props)
incubator/rat/whisker/trunk/apache-whisker-plugin4maven/src/it/smoke4generate/verify.bsh (with props)
Modified:
incubator/rat/whisker/trunk/apache-whisker-plugin4maven/pom.xml
Modified: incubator/rat/whisker/trunk/apache-whisker-plugin4maven/pom.xml
URL: http://svn.apache.org/viewvc/incubator/rat/whisker/trunk/apache-whisker-plugin4maven/pom.xml?rev=1232534&r1=1232533&r2=1232534&view=diff
==============================================================================
--- incubator/rat/whisker/trunk/apache-whisker-plugin4maven/pom.xml (original)
+++ incubator/rat/whisker/trunk/apache-whisker-plugin4maven/pom.xml Tue Jan 17 19:00:16 2012
@@ -90,6 +90,34 @@
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-invoker-plugin</artifactId>
+ <version>1.5</version>
+ <configuration>
+ <projectsDirectory>src/it</projectsDirectory>
+ <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
+ <pomIncludes>
+ <pomInclude>*/pom.xml</pomInclude>
+ </pomIncludes>
+ <settingsFile>src/it/settings.xml</settingsFile>
+ <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
+ <postBuildHookScript>verify.bsh</postBuildHookScript>
+ </configuration>
+ <executions>
+ <execution>
+ <id>integration-test</id>
+ <goals>
+ <goal>install</goal>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
<!--
Added: incubator/rat/whisker/trunk/apache-whisker-plugin4maven/src/it/settings.xml
URL: http://svn.apache.org/viewvc/incubator/rat/whisker/trunk/apache-whisker-plugin4maven/src/it/settings.xml?rev=1232534&view=auto
==============================================================================
--- incubator/rat/whisker/trunk/apache-whisker-plugin4maven/src/it/settings.xml (added)
+++ incubator/rat/whisker/trunk/apache-whisker-plugin4maven/src/it/settings.xml Tue Jan 17 19:00:16 2012
@@ -0,0 +1,53 @@
+<?xml version="1.0"?>
+<!--
+ 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>@localRepositoryUrl@</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+ <pluginRepositories>
+ <pluginRepository>
+ <id>local.central</id>
+ <url>@localRepositoryUrl@</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </pluginRepository>
+ </pluginRepositories>
+ </profile>
+ </profiles>
+</settings>
\ No newline at end of file
Propchange: incubator/rat/whisker/trunk/apache-whisker-plugin4maven/src/it/settings.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/rat/whisker/trunk/apache-whisker-plugin4maven/src/it/smoke4generate/pom.xml
URL: http://svn.apache.org/viewvc/incubator/rat/whisker/trunk/apache-whisker-plugin4maven/src/it/smoke4generate/pom.xml?rev=1232534&view=auto
==============================================================================
--- incubator/rat/whisker/trunk/apache-whisker-plugin4maven/src/it/smoke4generate/pom.xml (added)
+++ incubator/rat/whisker/trunk/apache-whisker-plugin4maven/src/it/smoke4generate/pom.xml Tue Jan 17 19:00:16 2012
@@ -0,0 +1,64 @@
+<?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
+ 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/xsd/maven-4.0.0.xsd"
+>
+ <modelVersion>4.0.0</modelVersion>
+
+
+ <groupId>org.apache.rat.whisker.it</groupId>
+ <artifactId>HelloWorld</artifactId>
+ <version>@project.version@</version>
+
+ <name>Smoke Test</name>
+ <description>
+ Basic integration test for LICENSE and NOTICE generation.
+ </description>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <target.jdk>1.5</target.jdk>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.rat.whisker</groupId>
+ <artifactId>apache-whisker-plugin4maven</artifactId>
+ <version>@project.version@</version>
+ <executions>
+ <execution>
+ <id>generate-stuff</id>
+ <phase>package</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <descriptor>descriptor.xml</descriptor>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
\ No newline at end of file
Propchange: incubator/rat/whisker/trunk/apache-whisker-plugin4maven/src/it/smoke4generate/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/rat/whisker/trunk/apache-whisker-plugin4maven/src/it/smoke4generate/verify.bsh
URL: http://svn.apache.org/viewvc/incubator/rat/whisker/trunk/apache-whisker-plugin4maven/src/it/smoke4generate/verify.bsh?rev=1232534&view=auto
==============================================================================
--- incubator/rat/whisker/trunk/apache-whisker-plugin4maven/src/it/smoke4generate/verify.bsh (added)
+++ incubator/rat/whisker/trunk/apache-whisker-plugin4maven/src/it/smoke4generate/verify.bsh Tue Jan 17 19:00:16 2012
@@ -0,0 +1,31 @@
+/**
+ * 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.
+ */
+
+import java.io.*;
+
+try {
+ File license = new File(basedir, "target/LICENSE");
+ File notice = new File(basedir, "target/NOTICE");
+ return license.exists() && notice.exists();
+
+} catch (Throwable t) {
+ t.printStackTrace();
+ return false;
+}
+return true;
\ No newline at end of file
Propchange: incubator/rat/whisker/trunk/apache-whisker-plugin4maven/src/it/smoke4generate/verify.bsh
------------------------------------------------------------------------------
svn:eol-style = native