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:
Brett Leslie Porter 2006-10-21 06:06:33 +00:00
parent a14672faeb
commit c14a969d3f
2 changed files with 19 additions and 0 deletions

View File

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

View File

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