o prefer FileUtils.fileRead() API to IOUtil.copy() to avoid file handle leaks in IT verification scripts
o code formatting
git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk@1098314 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/it/deploy-attached-sources/verify.bsh b/src/it/deploy-attached-sources/verify.bsh
index a0fd776..2ba7b01 100644
--- a/src/it/deploy-attached-sources/verify.bsh
+++ b/src/it/deploy-attached-sources/verify.bsh
@@ -33,17 +33,17 @@
System.err.println( "target file is missing or not a directory." );
return false;
}
-
- File deployedDir = new File ( target, "repo/org/apache/maven/its/deploy/test/1.0-SNAPSHOT/" );
+
+ File deployedDir = new File( target, "repo/org/apache/maven/its/deploy/test/1.0-SNAPSHOT/" );
if ( !deployedDir.isDirectory() )
{
System.err.println( "deployedDir is missing or is not a directory." );
return false;
- }
-
+ }
+
boolean sourcesExists = false;
boolean javadocsExists = false;
-
+
String [] fileList = deployedDir.list();
for ( int i=0; i<fileList.length; ++i )
{
@@ -56,19 +56,19 @@
javadocsExists = true;
}
}
-
+
if ( !sourcesExists )
{
System.err.println( "Unable to find deployed sources jar" );
return false;
}
-
+
if ( !javadocsExists )
{
System.err.println( "Unable to find deployed javadocs jar" );
return false;
}
-
+
}
catch( Throwable e )
{
diff --git a/src/it/deploy-default-packaging/verify.bsh b/src/it/deploy-default-packaging/verify.bsh
index b72870a..d84d286 100644
--- a/src/it/deploy-default-packaging/verify.bsh
+++ b/src/it/deploy-default-packaging/verify.bsh
@@ -33,14 +33,14 @@
System.err.println( "target file is missing or not a directory." );
return false;
}
-
- File deployedFile = new File ( target, "repo/org/apache/maven/test/test/1.1/test-1.1.jar" );
+
+ File deployedFile = new File( target, "repo/org/apache/maven/test/test/1.1/test-1.1.jar" );
if ( !deployedFile.isFile() )
{
System.err.println( "Deployed file is missing or is not a directory: " + deployedFile);
return false;
- }
-
+ }
+
}
catch( Throwable e )
{
diff --git a/src/it/mdeploy-45-test/verify.bsh b/src/it/mdeploy-45-test/verify.bsh
index a887693..320e280 100644
--- a/src/it/mdeploy-45-test/verify.bsh
+++ b/src/it/mdeploy-45-test/verify.bsh
@@ -33,14 +33,14 @@
System.err.println( "target file is missing or not a directory." );
return false;
}
-
- File deployedFile = new File ( target, "org/apache/maven/its/deploy/45/test/0.1/test-0.1-mdp45.war" );
+
+ File deployedFile = new File( target, "org/apache/maven/its/deploy/45/test/0.1/test-0.1-mdp45.war" );
if ( !deployedFile.exists() || deployedFile.isDirectory() )
{
System.err.println( "deployedFile file is missing or a directory." );
return false;
- }
-
+ }
+
}
catch( Throwable e )
{