You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by de...@apache.org on 2008/09/14 15:36:31 UTC

svn commit: r695217 - /maven/plugins/trunk/maven-site-plugin/src/it/MSITE-304/verify.bsh

Author: dennisl
Date: Sun Sep 14 06:36:30 2008
New Revision: 695217

URL: http://svn.apache.org/viewvc?rev=695217&view=rev
Log:
o Verify that the site:stage-deploy directory structure is correct.

Modified:
    maven/plugins/trunk/maven-site-plugin/src/it/MSITE-304/verify.bsh

Modified: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-304/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-304/verify.bsh?rev=695217&r1=695216&r2=695217&view=diff
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/MSITE-304/verify.bsh (original)
+++ maven/plugins/trunk/maven-site-plugin/src/it/MSITE-304/verify.bsh Sun Sep 14 06:36:30 2008
@@ -51,6 +51,27 @@
         System.err.println( "Staging directory for child is missing or not a directory." );
         return false;
     }
+
+    File stageDeployDirectory = new File ( "/tmp/www.example.com/parent" );
+    if ( !stageDeployDirectory.exists() || !stageDeployDirectory.isDirectory() )
+    {
+        System.err.println( "Stage deploy directory is missing or not a directory." );
+        return false;
+    }
+
+    File validChildStageDeployDirectory = new File ( stageDeployDirectory, "staging/child" );
+    if ( !validChildStageDeployDirectory.exists() || !validChildStageDeployDirectory.isDirectory() )
+    {
+        System.err.println( "Valid stage deploy directory for child is missing or not a directory." );
+        return false;
+    }
+
+    File invalidChildStageDeployDirectory = new File ( stageDeployDirectory, "child/staging" );
+    if ( invalidChildStageDeployDirectory.exists() && invalidChildStageDeployDirectory.isDirectory() )
+    {
+        System.err.println( "Invalid stage deploy directory for child is present." );
+        return false;
+    }
 }
 catch( IOException e )
 {