mirror of https://github.com/apache/maven.git
add @since for goals
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@466348 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a14672faeb
commit
c14a969d3f
|
@ -56,6 +56,8 @@ public class MojoDescriptor
|
|||
|
||||
private String phase;
|
||||
|
||||
private String since;
|
||||
|
||||
private String executePhase;
|
||||
|
||||
private String executeGoal;
|
||||
|
@ -231,6 +233,16 @@ public class MojoDescriptor
|
|||
this.phase = phase;
|
||||
}
|
||||
|
||||
public String getSince()
|
||||
{
|
||||
return since;
|
||||
}
|
||||
|
||||
public void setSince( String since )
|
||||
{
|
||||
this.since = since;
|
||||
}
|
||||
|
||||
public String getGoal()
|
||||
{
|
||||
return goal;
|
||||
|
|
|
@ -131,6 +131,13 @@ public class PluginDescriptorBuilder
|
|||
mojo.setComponentComposer( composerConfig.getValue() );
|
||||
}
|
||||
|
||||
String since = c.getChild( "since" ).getValue();
|
||||
|
||||
if ( since != null )
|
||||
{
|
||||
mojo.setSince( since );
|
||||
}
|
||||
|
||||
String phase = c.getChild( "phase" ).getValue();
|
||||
|
||||
if ( phase != null )
|
||||
|
|
Loading…
Reference in New Issue