diff --git a/src/it/invocation-cmdline-exclude/src/it/minvoker-140-executable/pom.xml b/src/it/invocation-cmdline-exclude/src/it/minvoker-140-executable/pom.xml index 255d3f62..948f8df0 100644 --- a/src/it/invocation-cmdline-exclude/src/it/minvoker-140-executable/pom.xml +++ b/src/it/invocation-cmdline-exclude/src/it/minvoker-140-executable/pom.xml @@ -35,7 +35,7 @@ under the License. org.apache.maven.plugins maven-enforcer-plugin - 1.1.1 + 3.1.0 diff --git a/src/it/invocation-cmdline-exclude/src/it/minvoker-140-ignorable/pom.xml b/src/it/invocation-cmdline-exclude/src/it/minvoker-140-ignorable/pom.xml index 03381ce9..8d3de191 100644 --- a/src/it/invocation-cmdline-exclude/src/it/minvoker-140-ignorable/pom.xml +++ b/src/it/invocation-cmdline-exclude/src/it/minvoker-140-ignorable/pom.xml @@ -35,7 +35,7 @@ under the License. org.apache.maven.plugins maven-enforcer-plugin - 1.1.1 + 3.1.0 diff --git a/src/it/invocation-cmdline-exclude/verify.bsh b/src/it/invocation-cmdline-exclude/verify.bsh deleted file mode 100644 index aa7e7b8d..00000000 --- a/src/it/invocation-cmdline-exclude/verify.bsh +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.*; -import java.util.*; -import java.util.regex.*; - -import org.codehaus.plexus.util.*; - -try -{ - File executableProjectReport = new File( basedir, "target/invoker-reports/BUILD-minvoker-140-executable.xml" ); - System.out.println( "Checking for existence of minvoker-140-executable report file: " + executableProjectReport ); - if ( !executableProjectReport.exists() ) - { - System.out.println( "FAILED!" ); - return false; - } - - File ignorableProjectReport = new File( basedir, "target/invoker-reports/BUILD-minvoker-140-ignorable.xml" ); - System.out.println( "Checking for non-existence of minvoker-140-ignorable report file: " + ignorableProjectReport ); - if ( ignorableProjectReport.exists() ) - { - System.out.println( "FAILED!" ); - return false; - } -} -catch( Throwable t ) -{ - t.printStackTrace(); - return false; -} - -return true; diff --git a/src/it/invocation-cmdline-exclude/verify.groovy b/src/it/invocation-cmdline-exclude/verify.groovy new file mode 100644 index 00000000..aab48ab1 --- /dev/null +++ b/src/it/invocation-cmdline-exclude/verify.groovy @@ -0,0 +1,21 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +assert new File(basedir, 'target/invoker-reports/BUILD-minvoker-140-executable.xml').exists() +assert !new File(basedir, 'target/invoker-reports/BUILD-minvoker-140-ignorable.xml').exists() +