renamed plugin-description.xml to plugin-help.xml
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1342957 13f79535-47bb-0310-9956-ffa450edef68master
parent
46532f2300
commit
93e82e524e
|
|
@ -101,10 +101,10 @@ public class PluginDescriptorGenerator
|
|||
|
||||
// write plugin-description.xml help-descriptor
|
||||
MavenProject mavenProject = request.getProject();
|
||||
String pluginDescriptionFilePath =
|
||||
String pluginHelpFilePath =
|
||||
"META-INF/maven/" + mavenProject.getGroupId() + "/" + mavenProject.getArtifactId()
|
||||
+ "/plugin-description.xml";
|
||||
f = new File( request.getProject().getBuild().getOutputDirectory(), pluginDescriptionFilePath );
|
||||
+ "/plugin-help.xml";
|
||||
f = new File( request.getProject().getBuild().getOutputDirectory(), pluginHelpFilePath );
|
||||
writeDescriptor( f, request, true );
|
||||
}
|
||||
catch ( IOException e )
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@ public class PluginHelpGenerator
|
|||
{
|
||||
properties.put( "helpPackageName", "" );
|
||||
}
|
||||
properties.put( "pluginDescriptionPath", propertiesFilePath + "/plugin-description.xml" );
|
||||
properties.put( "pluginHelpPath", propertiesFilePath + "/plugin-help.xml" );
|
||||
// FIXME encoding !
|
||||
|
||||
StringWriter stringWriter = new StringWriter();
|
||||
|
|
|
|||
|
|
@ -82,15 +82,15 @@ public class HelpMojo
|
|||
*/
|
||||
private int indentSize;
|
||||
|
||||
// groupId/artifactId/plugin-description.xml
|
||||
private String pluginDescriptionPath = "/${pluginDescriptionPath}";
|
||||
// groupId/artifactId/plugin-help.xml
|
||||
private String pluginHelpPath = "/${pluginHelpPath}";
|
||||
|
||||
private Xpp3Dom build()
|
||||
throws MojoExecutionException
|
||||
{
|
||||
// olamy more than one pluginDescriptor in the classloader possible ?
|
||||
getLog().debug( "load plugin-description.xml: " + pluginDescriptionPath );
|
||||
InputStream is = getClass().getResourceAsStream( pluginDescriptionPath );
|
||||
getLog().debug( "load plugin-help.xml: " + pluginHelpPath );
|
||||
InputStream is = getClass().getResourceAsStream( pluginHelpPath );
|
||||
try
|
||||
{
|
||||
return Xpp3DomBuilder.build( is, "ISO-8859-1" );
|
||||
|
|
|
|||
Loading…
Reference in New Issue