You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by lt...@apache.org on 2012/04/24 11:33:12 UTC

svn commit: r1329606 - in /maven/plugins/trunk/maven-site-plugin/src/it: MSITE-604/ MSITE-604/goals.txt MSITE-604/invoker.properties MSITE-604/pom.xml MSITE-604/verify.bsh settings.xml

Author: ltheussl
Date: Tue Apr 24 09:33:12 2012
New Revision: 1329606

URL: http://svn.apache.org/viewvc?rev=1329606&view=rev
Log:
[MSITE-604] add IT

Added:
    maven/plugins/trunk/maven-site-plugin/src/it/MSITE-604/
    maven/plugins/trunk/maven-site-plugin/src/it/MSITE-604/goals.txt   (with props)
    maven/plugins/trunk/maven-site-plugin/src/it/MSITE-604/invoker.properties   (with props)
    maven/plugins/trunk/maven-site-plugin/src/it/MSITE-604/pom.xml   (with props)
    maven/plugins/trunk/maven-site-plugin/src/it/MSITE-604/verify.bsh   (with props)
Modified:
    maven/plugins/trunk/maven-site-plugin/src/it/settings.xml

Added: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-604/goals.txt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-604/goals.txt?rev=1329606&view=auto
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/MSITE-604/goals.txt (added)
+++ maven/plugins/trunk/maven-site-plugin/src/it/MSITE-604/goals.txt Tue Apr 24 09:33:12 2012
@@ -0,0 +1 @@
+clean site:site site:deploy
\ No newline at end of file

Propchange: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-604/goals.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-604/goals.txt
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-604/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-604/invoker.properties?rev=1329606&view=auto
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/MSITE-604/invoker.properties (added)
+++ maven/plugins/trunk/maven-site-plugin/src/it/MSITE-604/invoker.properties Tue Apr 24 09:33:12 2012
@@ -0,0 +1 @@
+invoker.profiles = msite604

Propchange: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-604/invoker.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-604/invoker.properties
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-604/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-604/pom.xml?rev=1329606&view=auto
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/MSITE-604/pom.xml (added)
+++ maven/plugins/trunk/maven-site-plugin/src/it/MSITE-604/pom.xml Tue Apr 24 09:33:12 2012
@@ -0,0 +1,72 @@
+<?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.maven.plugins.site.its</groupId>
+  <artifactId>MSITE-604</artifactId>
+  <version>1.0-SNAPSHOT</version>
+  <packaging>pom</packaging>
+
+  <name>override settings IT</name>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    <msite604.siteRepositoryId>defaultId</msite604.siteRepositoryId>
+    <msite604.siteRepositoryUrl>defaultRepositoryUrl</msite604.siteRepositoryUrl>
+  </properties>
+
+  <distributionManagement>
+    <site>
+      <id>${msite604.siteRepositoryId}</id>
+      <url>file://@project.build.directory@/it/MSITE-604/target/${msite604.siteRepositoryUrl}</url>
+    </site>
+  </distributionManagement>
+
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-site-plugin</artifactId>
+        <version>@project.version@</version>
+      </plugin>
+    </plugins>
+  </build>
+
+  <reporting>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-project-info-reports-plugin</artifactId>
+        <version>2.1.2</version>
+        <reportSets>
+          <reportSet>
+            <reports>
+              <report>index</report>
+            </reports>
+          </reportSet>
+        </reportSets>
+      </plugin>
+    </plugins>
+  </reporting>
+</project>

Propchange: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-604/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-604/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-604/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-604/verify.bsh?rev=1329606&view=auto
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/MSITE-604/verify.bsh (added)
+++ maven/plugins/trunk/maven-site-plugin/src/it/MSITE-604/verify.bsh Tue Apr 24 09:33:12 2012
@@ -0,0 +1,48 @@
+
+/*
+ * 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.*;
+import org.codehaus.plexus.util.*;
+
+boolean result = true;
+
+try
+{
+    File target = new File( basedir, "target" );
+    if ( !target.exists() || !target.isDirectory() )
+    {
+        System.err.println( "target file is missing or not a directory." );
+        return false;
+    }
+
+    File siteDirectory = new File( target, "settingsRepositoryUrl" );
+    if ( !siteDirectory.exists() || !siteDirectory.isDirectory() )
+    {
+        System.err.println( "site file is missing or not a directory." );
+        return false;
+    }
+}
+catch ( IOException e )
+{
+    e.printStackTrace();
+    result = false;
+}
+
+return result;

Propchange: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-604/verify.bsh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-604/verify.bsh
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Modified: maven/plugins/trunk/maven-site-plugin/src/it/settings.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/settings.xml?rev=1329606&r1=1329605&r2=1329606&view=diff
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/settings.xml (original)
+++ maven/plugins/trunk/maven-site-plugin/src/it/settings.xml Tue Apr 24 09:33:12 2012
@@ -60,5 +60,12 @@ under the License.
         </pluginRepository>
       </pluginRepositories>
     </profile>
+    <profile>
+      <id>msite604</id>
+      <properties>
+        <msite604.siteRepositoryId>settingsId</msite604.siteRepositoryId>
+        <msite604.siteRepositoryUrl>settingsRepositoryUrl</msite604.siteRepositoryUrl>
+      </properties>
+    </profile>
   </profiles>
 </settings>