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()
|
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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -137,6 +137,8 @@ public class PluginHelpGenerator
|
||||||
|
|
||||||
writeHelpPropertiesFile( request, destinationDirectory );
|
writeHelpPropertiesFile( request, destinationDirectory );
|
||||||
|
|
||||||
|
useAnnotations = request.getProject().getArtifactMap().containsKey( "org.apache.maven.plugin-tools:maven-plugin-annotations" );
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
String sourcePath = helpImplementation.replace( '.', File.separatorChar ) + ".java";
|
String sourcePath = helpImplementation.replace( '.', File.separatorChar ) + ".java";
|
||||||
|
|
@ -160,12 +162,6 @@ public class PluginHelpGenerator
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public PluginHelpGenerator setUseAnnotations( boolean useAnnotations )
|
|
||||||
{
|
|
||||||
this.useAnnotations = useAnnotations;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public VelocityComponent getVelocityComponent()
|
public VelocityComponent getVelocityComponent()
|
||||||
{
|
{
|
||||||
return velocityComponent;
|
return velocityComponent;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue