diff --git a/src/it/multi-module/verify.bsh b/src/it/multi-module/verify.groovy similarity index 93% rename from src/it/multi-module/verify.bsh rename to src/it/multi-module/verify.groovy index 16e644d5..6bce67da 100644 --- a/src/it/multi-module/verify.bsh +++ b/src/it/multi-module/verify.groovy @@ -17,19 +17,20 @@ * under the License. */ +import groovy.transform.Field + import org.codehaus.plexus.util.FileUtils; import java.io.*; import java.util.*; -String[] modules = { "mod-1", "mod-2", "mod-3" }; -String[] paths = -{ +String[] modules = [ "mod-1", "mod-2", "mod-3" ] as String[]; +@Field String[] paths = [ "target/site/pmd.html", "target/site/cpd.html", "target/pmd.xml", "target/cpd.xml", -}; +] as String[]; // files must exist in every module for ( String module : modules ) @@ -83,7 +84,7 @@ void checkEncoding( String module, String encoding ) continue; } File file = new File( basedir, module + '/' + path ); - content = FileUtils.fileRead( file, encoding ); + String content = FileUtils.fileRead( file, encoding ); if ( !content.startsWith( "" ) ) { throw new IOException( "wrong XML encoding declaration for " + file );