diff --git a/maven-plugin-plugin/src/it/help-basic/invoker.properties b/maven-plugin-plugin/src/it/help-basic/invoker.properties index 95e289f..bf471ee 100644 --- a/maven-plugin-plugin/src/it/help-basic/invoker.properties +++ b/maven-plugin-plugin/src/it/help-basic/invoker.properties @@ -17,3 +17,4 @@ invoker.goals.1 = clean install -DskipTests invoker.goals.2 = org.apache.maven.its.plugin:help:1.0-SNAPSHOT:help +invoker.goals.3 = --log-file help.log org.apache.maven.its.plugin:help:1.0-SNAPSHOT:help diff --git a/maven-plugin-plugin/src/it/help-basic/src/main/java/test/MyMojo.java b/maven-plugin-plugin/src/it/help-basic/src/main/java/test/MyMojo.java index 12732ad..e6a1bce 100644 --- a/maven-plugin-plugin/src/it/help-basic/src/main/java/test/MyMojo.java +++ b/maven-plugin-plugin/src/it/help-basic/src/main/java/test/MyMojo.java @@ -46,7 +46,7 @@ public class MyMojo * This parameter is deprecated. * * @parameter - * @deprecated As of version 1.0, us the {@link #defaultParam} instead. + * @deprecated As of version 1.0, use the {@link #defaultParam} instead. */ private String deprecatedParam; diff --git a/maven-plugin-plugin/src/it/help-basic/verify.groovy b/maven-plugin-plugin/src/it/help-basic/verify.groovy new file mode 100644 index 0000000..635f9a6 --- /dev/null +++ b/maven-plugin-plugin/src/it/help-basic/verify.groovy @@ -0,0 +1,26 @@ +/* + * 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. + */ + +log = new File( basedir, "help.log" ).text; +log = log.substring( log.indexOf( "[INFO] help 1.0-SNAPSHOT" ) ) +log = log.substring( 0, log.indexOf( "[INFO]", 5 ) ) + +println "$log"; + +return true; \ No newline at end of file