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 2007/10/24 10:11:52 UTC

svn commit: r587811 - in /maven/plugins/trunk/maven-site-plugin/src/it/MSITE-265: pom.xml src/site/apt/ src/site/apt/download.apt.vm src/site/site.xml verify.bsh

Author: olamy
Date: Wed Oct 24 01:11:50 2007
New Revision: 587811

URL: http://svn.apache.org/viewvc?rev=587811&view=rev
Log:
update the it to test : using apt files as download.apt.vm 

Added:
    maven/plugins/trunk/maven-site-plugin/src/it/MSITE-265/src/site/apt/
    maven/plugins/trunk/maven-site-plugin/src/it/MSITE-265/src/site/apt/download.apt.vm   (with props)
Modified:
    maven/plugins/trunk/maven-site-plugin/src/it/MSITE-265/pom.xml
    maven/plugins/trunk/maven-site-plugin/src/it/MSITE-265/src/site/site.xml
    maven/plugins/trunk/maven-site-plugin/src/it/MSITE-265/verify.bsh

Modified: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-265/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-265/pom.xml?rev=587811&r1=587810&r2=587811&view=diff
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/MSITE-265/pom.xml (original)
+++ maven/plugins/trunk/maven-site-plugin/src/it/MSITE-265/pom.xml Wed Oct 24 01:11:50 2007
@@ -26,4 +26,7 @@
   <packaging>pom</packaging>
   <version>1.0-SNAPSHOT</version>
   <name>MSITE-265 It</name>
+  <properties>
+    <currentVersion>2.0.7</currentVersion>
+  </properties>
 </project>

Added: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-265/src/site/apt/download.apt.vm
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-265/src/site/apt/download.apt.vm?rev=587811&view=auto
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/MSITE-265/src/site/apt/download.apt.vm (added)
+++ maven/plugins/trunk/maven-site-plugin/src/it/MSITE-265/src/site/apt/download.apt.vm Wed Oct 24 01:11:50 2007
@@ -0,0 +1,11 @@
+ ------
+Download Maven ${currentVersion}
+ ------
+Brett Porter
+Jason van Zyl
+ ------
+4 October 2005
+ ------
+
+Download Maven ${currentVersion}
+

Propchange: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-265/src/site/apt/download.apt.vm
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-265/src/site/apt/download.apt.vm
------------------------------------------------------------------------------
    svn:executable = *

Propchange: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-265/src/site/apt/download.apt.vm
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Modified: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-265/src/site/site.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-265/src/site/site.xml?rev=587811&r1=587810&r2=587811&view=diff
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/MSITE-265/src/site/site.xml (original)
+++ maven/plugins/trunk/maven-site-plugin/src/it/MSITE-265/src/site/site.xml Wed Oct 24 01:11:50 2007
@@ -8,6 +8,9 @@
     <artifactId>maven-stylus-skin</artifactId>
   </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"/>

Modified: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-265/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-265/verify.bsh?rev=587811&r1=587810&r2=587811&view=diff
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/MSITE-265/verify.bsh (original)
+++ maven/plugins/trunk/maven-site-plugin/src/it/MSITE-265/verify.bsh Wed Oct 24 01:11:50 2007
@@ -19,6 +19,7 @@
  */
 
 import java.io.*;
+import org.codehaus.plexus.util.*;
 
 boolean result = true;
 
@@ -55,7 +56,22 @@
     {
         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;
+    }    
+    FileInputStream fis = new FileInputStream ( download );
+    String downloadContent = IOUtil.toString ( fis );
+    int indexOf = downloadContent.indexOf( "Download Maven 2.0.7" );
+    if ( indexOf < 0)
+    {
+    	System.err.println( "download.html doesn't contains Download Maven 2.0.7" );
+    }
+           
 }
 catch( IOException e )
 {