You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2012/05/26 23:14:01 UTC

svn commit: r1342969 - /maven/plugin-tools/trunk/maven-plugin-tools-generators/src/main/resources/help-class-source.vm

Author: hboutemy
Date: Sat May 26 21:14:01 2012
New Revision: 1342969

URL: http://svn.apache.org/viewvc?rev=1342969&view=rev
Log:
created PLUGIN_HELP_PATH constant instead of pluginHelpPath attribute

Modified:
    maven/plugin-tools/trunk/maven-plugin-tools-generators/src/main/resources/help-class-source.vm

Modified: maven/plugin-tools/trunk/maven-plugin-tools-generators/src/main/resources/help-class-source.vm
URL: http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-tools-generators/src/main/resources/help-class-source.vm?rev=1342969&r1=1342968&r2=1342969&view=diff
==============================================================================
--- maven/plugin-tools/trunk/maven-plugin-tools-generators/src/main/resources/help-class-source.vm (original)
+++ maven/plugin-tools/trunk/maven-plugin-tools-generators/src/main/resources/help-class-source.vm Sat May 26 21:14:01 2012
@@ -84,14 +84,14 @@ public class HelpMojo
     private int indentSize;
 
     // groupId/artifactId/plugin-help.xml
-    private String pluginHelpPath = "/${pluginHelpPath}";
+    private static final String PLUGIN_HELP_PATH = "/${pluginHelpPath}";
 
     private Xpp3Dom build()
         throws MojoExecutionException
     {
         // olamy more than one pluginDescriptor in the classloader possible ?
-        getLog().debug( "load plugin-help.xml: " + pluginHelpPath );
-        InputStream is = getClass().getResourceAsStream( pluginHelpPath );
+        getLog().debug( "load plugin-help.xml: " + PLUGIN_HELP_PATH );
+        InputStream is = getClass().getResourceAsStream( PLUGIN_HELP_PATH );
         try
         {
             return Xpp3DomBuilder.build( ReaderFactory.newXmlReader( is ) );