Author: olamy
Date: Mon Aug 22 09:34:27 2011
New Revision: 1160160
URL: http://svn.apache.org/viewvc?rev=1160160&view=rev
Log:
[MSITE-609] add an it
Added:
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/goals.txt (with
props)
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/pom.xml (with
props)
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/main/
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/main/java/
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/main/java/foo/
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/main/java/foo/App.java
(with props)
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/apt/
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/apt/download.apt.vm
(with props)
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/site.xml
(with props)
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/xdoc/
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/xdoc/index.xml
(with props)
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/xdoc/releases/
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/xdoc/releases/release1.6.3.xml
(with props)
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/xdoc/releases/release1.6.xml
(with props)
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/verify.bsh (with
props)
Added: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/goals.txt
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/goals.txt?rev=1160160&view=auto
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/goals.txt (added)
+++ maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/goals.txt Mon Aug 22
09:34:27 2011
@@ -0,0 +1 @@
+clean site-deploy
\ No newline at end of file
Propchange: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/goals.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/goals.txt
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/pom.xml
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/pom.xml?rev=1160160&view=auto
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/pom.xml (added)
+++ maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/pom.xml Mon Aug 22
09:34:27 2011
@@ -0,0 +1,70 @@
+<!--
+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>site-deploy</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+
+ <name>site-deploy IT</name>
+
+ <properties>
+ <currentVersion>2.0.7</currentVersion>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+
+ <distributionManagement>
+ <site>
+ <id>MSITE-609</id>
+ <name>Example company web server</name>
+
<url>file://@project.build.directory@/it/MSITE-609/target/site-deployed/</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-609/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/pom.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added:
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/main/java/foo/App.java
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/main/java/foo/App.java?rev=1160160&view=auto
==============================================================================
---
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/main/java/foo/App.java
(added)
+++
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/main/java/foo/App.java
Mon Aug 22 09:34:27 2011
@@ -0,0 +1,32 @@
+package foo;
+
+/*
+ * 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/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/main/java/foo/App.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/main/java/foo/App.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added:
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/apt/download.apt.vm
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/apt/download.apt.vm?rev=1160160&view=auto
==============================================================================
---
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/apt/download.apt.vm
(added)
+++
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/apt/download.apt.vm
Mon Aug 22 09:34:27 2011
@@ -0,0 +1,36 @@
+ ------
+Download Maven ${currentVersion}
+ ------
+Brett Porter
+Jason van Zyl
+ ------
+4 October 2005
+ ------
+
+ ~~ 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.
+
+
+Download Maven ${currentVersion}
+
+ Encoding support test:
+
+ * source file encoding is configured in <<<pom.xml>>>: <<<UTF-8>>>
+
+ * using default reporting output files encoding: <<<UTF-8>>>
+
+ * demo character: ⬠(euro)
\ No newline at end of file
Propchange:
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/apt/download.apt.vm
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/apt/download.apt.vm
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/site.xml
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/site.xml?rev=1160160&view=auto
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/site.xml
(added)
+++ maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/site.xml
Mon Aug 22 09:34:27 2011
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!--
+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 name="MSITE-265" xmlns="http://maven.apache.org/DECORATION/1.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0
http://maven.apache.org/xsd/decoration-1.0.0.xsd">
+ <publishDate format="dd MMM yyyy HH:mm"/>
+ <version position="left"/>
+ <skin>
+ <groupId>org.apache.maven.skins</groupId>
+ <artifactId>maven-stylus-skin</artifactId>
+ <version>1.2</version>
+ </skin>
+ <body>
+ <breadcrumbs>
+ <item name="Maven" href="http://maven.apache.org/${currentVersion}"/>
+ </breadcrumbs>
+ <menu name="Releases TODO">
+ <item name="release1.6" href="releases/release1.6.html"/>
+ <item name="release1.6.3" href="releases/release1.6.3.html"/>
+ </menu>
+ <menu ref="parent"/>
+ <menu ref="reports"/>
+ <menu ref="modules"/>
+ </body>
+</project>
Propchange:
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/site.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/site.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added:
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/xdoc/index.xml
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/xdoc/index.xml?rev=1160160&view=auto
==============================================================================
---
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/xdoc/index.xml
(added)
+++
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/xdoc/index.xml
Mon Aug 22 09:34:27 2011
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!--
+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.
+-->
+
+<document>
+ <body>
+ <section name="Overview">
+ <p>MSITE-265.</p>
+ </section>
+ </body>
+</document>
\ No newline at end of file
Propchange:
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/xdoc/index.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/xdoc/index.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added:
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/xdoc/releases/release1.6.3.xml
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/xdoc/releases/release1.6.3.xml?rev=1160160&view=auto
==============================================================================
---
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/xdoc/releases/release1.6.3.xml
(added)
+++
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/xdoc/releases/release1.6.3.xml
Mon Aug 22 09:34:27 2011
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!--
+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.
+-->
+
+<document>
+ <body>
+ <section name="todo">
+ <p>Release TODO 1.6.3</p>
+ </section>
+ </body>
+</document>
Propchange:
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/xdoc/releases/release1.6.3.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/xdoc/releases/release1.6.3.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added:
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/xdoc/releases/release1.6.xml
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/xdoc/releases/release1.6.xml?rev=1160160&view=auto
==============================================================================
---
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/xdoc/releases/release1.6.xml
(added)
+++
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/xdoc/releases/release1.6.xml
Mon Aug 22 09:34:27 2011
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!--
+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.
+-->
+
+<document>
+ <body>
+ <section name="todo">
+ <p>Release TODO 1.6</p>
+ </section>
+ </body>
+</document>
\ No newline at end of file
Propchange:
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/xdoc/releases/release1.6.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/src/site/xdoc/releases/release1.6.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/verify.bsh
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/verify.bsh?rev=1160160&view=auto
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/verify.bsh (added)
+++ maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/verify.bsh Mon Aug
22 09:34:27 2011
@@ -0,0 +1,81 @@
+
+/*
+ * 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, "site-deployed" );
+ if ( !siteDirectory.exists() || !siteDirectory.isDirectory() )
+ {
+ System.err.println( "site file is missing or not a directory." );
+ return false;
+ }
+
+ File releaseDirectory = new File( siteDirectory, "releases" );
+ if ( !releaseDirectory.exists() || !releaseDirectory.isDirectory() )
+ {
+ System.err.println( "releaseDirectory file is missing or not a
directory." );
+ return false;
+ }
+ File release163 = new File( releaseDirectory, "release1.6.3.html" );
+ if ( !release163.exists() || release163.isDirectory() )
+ {
+ System.err.println( "release163 file is missing or a directory." );
+ return false;
+ }
+ File release16 = new File( releaseDirectory, "release1.6.html" );
+ if ( !release16.exists() || release16.isDirectory() )
+ {
+ System.err.println( "release16 file is missing or a directory." );
+ return false;
+ }
+
+ File download = new File( siteDirectory, "download.html" );
+ if ( !download.exists() || download.isDirectory() )
+ {
+ System.err.println( "download.html file is missing or a directory." );
+ return false;
+ }
+ String downloadContent = FileUtils.fileRead( download, "UTF-8" );
+ int indexOf = downloadContent.indexOf( "Download Maven 2.0.7" );
+ if ( indexOf < 0 )
+ {
+ System.err.println( "download.html doesn't contain Download Maven
2.0.7" );
+ return false;
+ }
+}
+catch ( IOException e )
+{
+ e.printStackTrace();
+ result = false;
+}
+
+return result;
Propchange: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/verify.bsh
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-609/verify.bsh
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision