Remove setUseAnnotations from PluginHelpGenerator, PluginToolsRequest has enough info to decide this.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1406001 13f79535-47bb-0310-9956-ffa450edef68master
parent
570bb47130
commit
197ce98685
|
|
@ -76,7 +76,7 @@ public class HelpGeneratorMojo
|
|||
*/
|
||||
protected Generator createGenerator()
|
||||
{
|
||||
return new PluginHelpGenerator().setHelpPackageName( helpPackageName ).setUseAnnotations( project.getArtifactMap().containsKey( "org.apache.maven.plugin-tools:maven-plugin-annotations" ) ).setVelocityComponent( this.velocity );
|
||||
return new PluginHelpGenerator().setHelpPackageName( helpPackageName ).setVelocityComponent( this.velocity );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -136,6 +136,8 @@ public class PluginHelpGenerator
|
|||
}
|
||||
|
||||
writeHelpPropertiesFile( request, destinationDirectory );
|
||||
|
||||
useAnnotations = request.getProject().getArtifactMap().containsKey( "org.apache.maven.plugin-tools:maven-plugin-annotations" );
|
||||
|
||||
try
|
||||
{
|
||||
|
|
@ -160,12 +162,6 @@ public class PluginHelpGenerator
|
|||
return this;
|
||||
}
|
||||
|
||||
public PluginHelpGenerator setUseAnnotations( boolean useAnnotations )
|
||||
{
|
||||
this.useAnnotations = useAnnotations;
|
||||
return this;
|
||||
}
|
||||
|
||||
public VelocityComponent getVelocityComponent()
|
||||
{
|
||||
return velocityComponent;
|
||||
|
|
|
|||
Loading…
Reference in New Issue