|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.tools.plugin.generator.GeneratorUtils
public final class GeneratorUtils
Convenience methods to play with Maven plugins.
Method Summary | |
---|---|
static String |
discoverPackageName(PluginDescriptor pluginDescriptor)
Find the best package name, based on the number of hits of actual Mojo classes. |
static void |
element(XMLWriter w,
String name,
String value)
|
static void |
element(XMLWriter w,
String name,
String value,
boolean asText)
|
static boolean |
isMavenReport(String impl,
MavenProject project)
|
static String |
makeHtmlValid(String description)
Fixes some javadoc comment to become a valid XHTML snippet. |
static List<org.codehaus.plexus.component.repository.ComponentDependency> |
toComponentDependencies(List<Dependency> dependencies)
|
static String |
toText(String html)
Converts a HTML fragment as extracted from a javadoc comment to a plain text string. |
static void |
writeDependencies(XMLWriter w,
PluginDescriptor pluginDescriptor)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void writeDependencies(XMLWriter w, PluginDescriptor pluginDescriptor)
w
- not null writerpluginDescriptor
- not nullpublic static void element(XMLWriter w, String name, String value)
w
- not null writername
- not nullvalue
- could be nullpublic static void element(XMLWriter w, String name, String value, boolean asText)
public static List<org.codehaus.plexus.component.repository.ComponentDependency> toComponentDependencies(List<Dependency> dependencies)
dependencies
- not null list of Dependency
public static String makeHtmlValid(String description)
description
- Javadoc description with HTML tags, may be null
.
null
.public static String toText(String html)
html
- The HTML fragment to convert to plain text, may be null
.
null
.public static String discoverPackageName(PluginDescriptor pluginDescriptor)
pluginDescriptor
- not null
public static boolean isMavenReport(String impl, MavenProject project) throws IllegalArgumentException
impl
- a Mojo implementation, not nullproject
- a MavenProject instance, could be null
true
is the Mojo implementation implements MavenReport
,
false
otherwise.
IllegalArgumentException
- if any
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |