o Fix errors reported by Checkstyle.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1067539 13f79535-47bb-0310-9956-ffa450edef68master
parent
4e5f561c73
commit
7f32cbc96f
|
|
@ -70,7 +70,8 @@ public abstract class AbstractScriptedMojoDescriptorExtractor
|
||||||
if ( !StringUtils.isEmpty( metadataExtension ) )
|
if ( !StringUtils.isEmpty( metadataExtension ) )
|
||||||
{
|
{
|
||||||
Map metadataFilesKeyedByBasedir =
|
Map metadataFilesKeyedByBasedir =
|
||||||
gatherFilesByBasedir( project.getBasedir(), project.getScriptSourceRoots(), metadataExtension, request );
|
gatherFilesByBasedir( project.getBasedir(), project.getScriptSourceRoots(), metadataExtension,
|
||||||
|
request );
|
||||||
|
|
||||||
mojoDescriptors = extractMojoDescriptorsFromMetadata( metadataFilesKeyedByBasedir, request );
|
mojoDescriptors = extractMojoDescriptorsFromMetadata( metadataFilesKeyedByBasedir, request );
|
||||||
}
|
}
|
||||||
|
|
@ -89,7 +90,8 @@ public abstract class AbstractScriptedMojoDescriptorExtractor
|
||||||
* @param outputDirectory not null
|
* @param outputDirectory not null
|
||||||
* @throws ExtractionException if any
|
* @throws ExtractionException if any
|
||||||
*/
|
*/
|
||||||
protected void copyScriptsToOutputDirectory( Map scriptFilesKeyedByBasedir, String outputDirectory, PluginToolsRequest request )
|
protected void copyScriptsToOutputDirectory( Map scriptFilesKeyedByBasedir, String outputDirectory,
|
||||||
|
PluginToolsRequest request )
|
||||||
throws ExtractionException
|
throws ExtractionException
|
||||||
{
|
{
|
||||||
File outputDir = new File( outputDirectory );
|
File outputDir = new File( outputDirectory );
|
||||||
|
|
@ -144,7 +146,8 @@ public abstract class AbstractScriptedMojoDescriptorExtractor
|
||||||
* @param scriptFileExtension not null
|
* @param scriptFileExtension not null
|
||||||
* @return map with subdirs paths as key
|
* @return map with subdirs paths as key
|
||||||
*/
|
*/
|
||||||
protected Map gatherFilesByBasedir( File basedir, List directories, String scriptFileExtension, PluginToolsRequest request )
|
protected Map gatherFilesByBasedir( File basedir, List directories, String scriptFileExtension,
|
||||||
|
PluginToolsRequest request )
|
||||||
{
|
{
|
||||||
Map sourcesByBasedir = new TreeMap();
|
Map sourcesByBasedir = new TreeMap();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -290,7 +290,8 @@ public class PluginHelpGenerator
|
||||||
* @param useJava5 If the generated code should use Java5 features
|
* @param useJava5 If the generated code should use Java5 features
|
||||||
* @throws IOException if any
|
* @throws IOException if any
|
||||||
*/
|
*/
|
||||||
private static void writeClass( Writer writer, PluginDescriptor pluginDescriptor, MojoDescriptor helpDescriptor, boolean useJava5 )
|
private static void writeClass( Writer writer, PluginDescriptor pluginDescriptor, MojoDescriptor helpDescriptor,
|
||||||
|
boolean useJava5 )
|
||||||
throws IOException
|
throws IOException
|
||||||
{
|
{
|
||||||
String packageName = "";
|
String packageName = "";
|
||||||
|
|
|
||||||
|
|
@ -163,7 +163,8 @@ public class PluginXdocGenerator
|
||||||
w.startElement( "document" );
|
w.startElement( "document" );
|
||||||
w.addAttribute( "xmlns", "http://maven.apache.org/XDOC/2.0" );
|
w.addAttribute( "xmlns", "http://maven.apache.org/XDOC/2.0" );
|
||||||
w.addAttribute( "xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance" );
|
w.addAttribute( "xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance" );
|
||||||
w.addAttribute( "xsi:schemaLocation", "http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd" );
|
w.addAttribute( "xsi:schemaLocation",
|
||||||
|
"http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd" );
|
||||||
|
|
||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue