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/webapp-it/verify.bsh b/src/it/webapp-it/verify.bsh
index 3c65829..8e8a874 100644
--- a/src/it/webapp-it/verify.bsh
+++ b/src/it/webapp-it/verify.bsh
@@ -11,9 +11,9 @@
File build;
File mavenBuild;
File mavenBuildProperties;
-
+
// Webapp project
-
+
build = new File( basedir, "build.xml" );
if ( build.isDirectory() || !build.exists() )
{
@@ -44,7 +44,7 @@
System.err.println( "The file '" + mavenBuildProperties.getAbsolutePath() + "' is a directory or doesn't exist." );
return false;
}
-
+
warFile = new File( basedir, "target/ant-webapp-test.war" );
System.out.println( "Checking for existence of WAR file: " + warFile );
if ( !warFile.isFile() )
@@ -52,7 +52,7 @@
System.err.println( "FAILED!" );
return false;
}
-
+
JarFile war = new JarFile( warFile );
String[] expected = {
@@ -90,7 +90,7 @@
return false;
}
}
-
+
String[] unexpected = {
"org/MyClass.class",
};