Goal annotation renamed to Mojo, ThreadSafe moved to an attribute in Mojo annotation
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1332010 13f79535-47bb-0310-9956-ffa450edef68master
parent
8f804a31b5
commit
8c108af423
|
|
@ -34,7 +34,7 @@ import java.lang.annotation.Target;
|
||||||
@Retention( RetentionPolicy.RUNTIME )
|
@Retention( RetentionPolicy.RUNTIME )
|
||||||
@Target( ElementType.TYPE )
|
@Target( ElementType.TYPE )
|
||||||
@Inherited
|
@Inherited
|
||||||
public @interface Goal
|
public @interface Mojo
|
||||||
{
|
{
|
||||||
String name();
|
String name();
|
||||||
|
|
||||||
|
|
@ -61,4 +61,6 @@ public @interface Goal
|
||||||
boolean inheritByDefault() default true;
|
boolean inheritByDefault() default true;
|
||||||
|
|
||||||
String configurator() default "";
|
String configurator() default "";
|
||||||
|
|
||||||
|
boolean threadSafe() default false;
|
||||||
}
|
}
|
||||||
|
|
@ -1,43 +0,0 @@
|
||||||
package org.apache.maven.tools.plugin.annotations;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* 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.lang.annotation.Documented;
|
|
||||||
import java.lang.annotation.ElementType;
|
|
||||||
import java.lang.annotation.Inherited;
|
|
||||||
import java.lang.annotation.Retention;
|
|
||||||
import java.lang.annotation.RetentionPolicy;
|
|
||||||
import java.lang.annotation.Target;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Olivier Lamy
|
|
||||||
* @since 3.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
@Documented
|
|
||||||
@Inherited
|
|
||||||
@Retention( RetentionPolicy.RUNTIME )
|
|
||||||
@Target( { ElementType.TYPE } )
|
|
||||||
public @interface ThreadSafe
|
|
||||||
{
|
|
||||||
boolean value() default true;
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue