[MPLUGIN-274] fixed style errors in generated HelpMojo source
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1628556 13f79535-47bb-0310-9956-ffa450edef68master
parent
045ab59621
commit
7bc6873931
|
|
@ -105,7 +105,10 @@ public class HelpMojo
|
||||||
private int indentSize;
|
private int indentSize;
|
||||||
|
|
||||||
// groupId/artifactId/plugin-help.xml
|
// groupId/artifactId/plugin-help.xml
|
||||||
private static final String PLUGIN_HELP_PATH = "/${pluginHelpPath}";
|
private static final String PLUGIN_HELP_PATH =
|
||||||
|
"/${pluginHelpPath}";
|
||||||
|
|
||||||
|
private static final int DEFAULT_LINE_LENGTH = 80;
|
||||||
|
|
||||||
private Document build()
|
private Document build()
|
||||||
throws MojoExecutionException
|
throws MojoExecutionException
|
||||||
|
|
@ -156,7 +159,7 @@ public class HelpMojo
|
||||||
if ( lineLength <= 0 )
|
if ( lineLength <= 0 )
|
||||||
{
|
{
|
||||||
getLog().warn( "The parameter 'lineLength' should be positive, using '80' as default." );
|
getLog().warn( "The parameter 'lineLength' should be positive, using '80' as default." );
|
||||||
lineLength = 80;
|
lineLength = DEFAULT_LINE_LENGTH;
|
||||||
}
|
}
|
||||||
if ( indentSize <= 0 )
|
if ( indentSize <= 0 )
|
||||||
{
|
{
|
||||||
|
|
@ -318,7 +321,7 @@ public class HelpMojo
|
||||||
String parameterName = getValue( parameter, "name" );
|
String parameterName = getValue( parameter, "name" );
|
||||||
String parameterDescription = getValue( parameter, "description" );
|
String parameterDescription = getValue( parameter, "description" );
|
||||||
|
|
||||||
Element fieldConfigurationElement = (Element)findSingleChild( configurationElement, parameterName );
|
Element fieldConfigurationElement = (Element) findSingleChild( configurationElement, parameterName );
|
||||||
|
|
||||||
String parameterDefaultValue = "";
|
String parameterDefaultValue = "";
|
||||||
if ( fieldConfigurationElement != null && fieldConfigurationElement.hasAttribute( "default-value" ) )
|
if ( fieldConfigurationElement != null && fieldConfigurationElement.hasAttribute( "default-value" ) )
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue