[MPLUGIN-262] prepare more precise checks of help output

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1590388 13f79535-47bb-0310-9956-ffa450edef68
master
Herve Boutemy 2014-04-27 13:11:40 +00:00
parent 837f681ee8
commit 166e0f7215
3 changed files with 28 additions and 1 deletions

View File

@ -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

View File

@ -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;

View File

@ -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;