You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2009/09/05 19:29:54 UTC

svn commit: r811683 - in /maven/jxr/trunk/maven-jxr-plugin: ./ src/it/ src/it/simple-project/ src/it/simple-project/src/ src/it/simple-project/src/main/ src/it/simple-project/src/main/java/ src/it/simple-project/src/main/java/org/ src/it/simple-project...

Author: olamy
Date: Sat Sep  5 17:29:53 2009
New Revision: 811683

URL: http://svn.apache.org/viewvc?rev=811683&view=rev
Log:
add a simple it.

Added:
    maven/jxr/trunk/maven-jxr-plugin/src/it/
    maven/jxr/trunk/maven-jxr-plugin/src/it/settings.xml   (with props)
    maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/
    maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/pom.xml   (with props)
    maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/src/
    maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/src/main/
    maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/src/main/java/
    maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/src/main/java/org/
    maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/src/main/java/org/apache/
    maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/src/main/java/org/apache/maven/
    maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/src/main/java/org/apache/maven/jxr/
    maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/src/main/java/org/apache/maven/jxr/it/
    maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/src/main/java/org/apache/maven/jxr/it/App.java   (with props)
    maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/src/test/
    maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/src/test/java/
    maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/src/test/java/org/
    maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/src/test/java/org/apache/
    maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/src/test/java/org/apache/maven/
    maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/src/test/java/org/apache/maven/jxr/
    maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/src/test/java/org/apache/maven/jxr/it/
    maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/src/test/java/org/apache/maven/jxr/it/AppTest.java   (with props)
    maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/verify.groovy
Modified:
    maven/jxr/trunk/maven-jxr-plugin/pom.xml

Modified: maven/jxr/trunk/maven-jxr-plugin/pom.xml
URL: http://svn.apache.org/viewvc/maven/jxr/trunk/maven-jxr-plugin/pom.xml?rev=811683&r1=811682&r2=811683&view=diff
==============================================================================
--- maven/jxr/trunk/maven-jxr-plugin/pom.xml (original)
+++ maven/jxr/trunk/maven-jxr-plugin/pom.xml Sat Sep  5 17:29:53 2009
@@ -131,4 +131,43 @@
     </dependency>
   </dependencies>
   
+  <profiles>
+    <profile>
+      <id>run-its</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-invoker-plugin</artifactId>
+            <version>1.3</version>
+            <configuration>
+              <projectsDirectory>src/it</projectsDirectory>
+              <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
+              <pomIncludes>
+                <pomInclude>*/pom.xml</pomInclude>
+              </pomIncludes>
+              <postBuildHookScript>verify</postBuildHookScript>
+              <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
+              <goals>
+                <goal>clean</goal>
+                <goal>site</goal>
+              </goals>
+              <settingsFile>src/it/settings.xml</settingsFile>
+              <debug>true</debug>
+            </configuration>
+            <executions>
+              <execution>
+                <id>integration-test</id>
+                <goals>
+                  <goal>install</goal>
+                  <goal>run</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>  
+  
 </project>
\ No newline at end of file

Added: maven/jxr/trunk/maven-jxr-plugin/src/it/settings.xml
URL: http://svn.apache.org/viewvc/maven/jxr/trunk/maven-jxr-plugin/src/it/settings.xml?rev=811683&view=auto
==============================================================================
--- maven/jxr/trunk/maven-jxr-plugin/src/it/settings.xml (added)
+++ maven/jxr/trunk/maven-jxr-plugin/src/it/settings.xml Sat Sep  5 17:29:53 2009
@@ -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>@localRepositoryUrl@</url>
+          <releases>
+            <enabled>true</enabled>
+          </releases>
+          <snapshots>
+            <enabled>true</enabled>
+          </snapshots>
+        </repository>
+        <repository>
+          <id>apache.snapshots</id>
+          <name>Apache Snapshot Repository</name>
+          <url>http://repository.apache.org/content/groups/snapshots-group/</url>
+          <releases>
+            <enabled>false</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>

Propchange: maven/jxr/trunk/maven-jxr-plugin/src/it/settings.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/jxr/trunk/maven-jxr-plugin/src/it/settings.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/pom.xml
URL: http://svn.apache.org/viewvc/maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/pom.xml?rev=811683&view=auto
==============================================================================
--- maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/pom.xml (added)
+++ maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/pom.xml Sat Sep  5 17:29:53 2009
@@ -0,0 +1,58 @@
+<?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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.maven.jxr.it</groupId>
+  <artifactId>simple-project</artifactId>
+  <packaging>jar</packaging>
+  <version>1.0-SNAPSHOT</version>
+  <name>simple-project</name>
+  <url>http://maven.apache.org</url>
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.1</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jxr-plugin</artifactId>
+        <version>@pom.version@</version>
+      </plugin>    
+    </plugins>
+  </build>
+  <reporting>
+    <excludeDefaults>true</excludeDefaults>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jxr-plugin</artifactId>
+        <version>@pom.version@</version>
+      </plugin>
+      
+    </plugins>
+  </reporting>
+</project>

Propchange: maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/src/main/java/org/apache/maven/jxr/it/App.java
URL: http://svn.apache.org/viewvc/maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/src/main/java/org/apache/maven/jxr/it/App.java?rev=811683&view=auto
==============================================================================
--- maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/src/main/java/org/apache/maven/jxr/it/App.java (added)
+++ maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/src/main/java/org/apache/maven/jxr/it/App.java Sat Sep  5 17:29:53 2009
@@ -0,0 +1,32 @@
+package org.apache.maven.jxr.it;
+
+/*
+ * 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.
+ */
+
+/**
+ * Hello world!
+ *
+ */
+public class App 
+{
+    public static void main( String[] args )
+    {
+        System.out.println( "Hello World!" );
+    }
+}

Propchange: maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/src/main/java/org/apache/maven/jxr/it/App.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/src/main/java/org/apache/maven/jxr/it/App.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Revision Id

Added: maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/src/test/java/org/apache/maven/jxr/it/AppTest.java
URL: http://svn.apache.org/viewvc/maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/src/test/java/org/apache/maven/jxr/it/AppTest.java?rev=811683&view=auto
==============================================================================
--- maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/src/test/java/org/apache/maven/jxr/it/AppTest.java (added)
+++ maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/src/test/java/org/apache/maven/jxr/it/AppTest.java Sat Sep  5 17:29:53 2009
@@ -0,0 +1,57 @@
+package org.apache.maven.jxr.it;
+
+/*
+ * 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 junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest 
+    extends TestCase
+{
+    /**
+     * Create the test case
+     *
+     * @param testName name of the test case
+     */
+    public AppTest( String testName )
+    {
+        super( testName );
+    }
+
+    /**
+     * @return the suite of tests being tested
+     */
+    public static Test suite()
+    {
+        return new TestSuite( AppTest.class );
+    }
+
+    /**
+     * Rigourous Test :-)
+     */
+    public void testApp()
+    {
+        assertTrue( true );
+    }
+}

Propchange: maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/src/test/java/org/apache/maven/jxr/it/AppTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/src/test/java/org/apache/maven/jxr/it/AppTest.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Revision Id

Added: maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/verify.groovy
URL: http://svn.apache.org/viewvc/maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/verify.groovy?rev=811683&view=auto
==============================================================================
--- maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/verify.groovy (added)
+++ maven/jxr/trunk/maven-jxr-plugin/src/it/simple-project/verify.groovy Sat Sep  5 17:29:53 2009
@@ -0,0 +1,34 @@
+
+/*
+ * 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.
+ */
+assert new File(basedir, 'target/site').exists();
+
+content = new File(basedir, 'target/site/project-reports.html').text;
+
+assert content.contains( 'xref/index.html' );
+assert content.contains( 'xref-test/index.html' );
+
+assert new File(basedir, 'target/site/xref').exists();
+assert new File(basedir, 'target/site/xref/index.html').exists();
+assert new File(basedir, 'target/site/xref/org/apache/maven/jxr/it/App.html').exists();
+
+assert new File(basedir, 'target/site/xref-test').exists();
+assert new File(basedir, 'target/site/xref-test/index.html').exists();
+assert new File(basedir, 'target/site/xref-test/org/apache/maven/jxr/it/AppTest.html').exists();
+return true;
\ No newline at end of file