You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2008/09/04 23:09:49 UTC
svn commit: r692245 -
/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-265/verify.bsh
Author: hboutemy
Date: Thu Sep 4 14:09:49 2008
New Revision: 692245
URL: http://svn.apache.org/viewvc?rev=692245&view=rev
Log:
changed tabs to spaces
Modified:
maven/plugins/trunk/maven-site-plugin/src/it/MSITE-265/verify.bsh
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=692245&r1=692244&r2=692245&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 Thu Sep 4 14:09:49 2008
@@ -31,14 +31,14 @@
System.err.println( "target file is missing or not a directory." );
return false;
}
-
+
File siteDirectory = new File ( target, "site" );
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() )
{
@@ -56,23 +56,23 @@
{
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" );
+ System.err.println( "download.html doesn't contains Download Maven 2.0.7" );
return false;
}
-
+
}
catch( IOException e )
{