public final class GeneratorUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
discoverPackageName(org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
Find the best package name, based on the number of hits of actual Mojo classes.
|
static void |
element(org.codehaus.plexus.util.xml.XMLWriter w,
String name,
String value) |
static boolean |
isMavenReport(String impl,
org.apache.maven.project.MavenProject project)
Deprecated.
Use
PluginUtils.isMavenReport(String, MavenProject) instead. |
static String |
makeHtmlValid(String description)
Deprecated.
Redundant for java extractor
|
static List<org.codehaus.plexus.component.repository.ComponentDependency> |
toComponentDependencies(Collection<org.apache.maven.artifact.Artifact> artifacts) |
static String |
toText(String html)
Deprecated.
Replaced by
HtmlToPlainTextConverter |
static void |
writeDependencies(org.codehaus.plexus.util.xml.XMLWriter w,
org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor) |
public static void writeDependencies(org.codehaus.plexus.util.xml.XMLWriter w, org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
w - not null writerpluginDescriptor - not nullpublic static void element(org.codehaus.plexus.util.xml.XMLWriter w, String name, String value)
w - not null writername - not nullvalue - could be nullpublic static List<org.codehaus.plexus.component.repository.ComponentDependency> toComponentDependencies(Collection<org.apache.maven.artifact.Artifact> artifacts)
artifacts - not null collection of Artifact@Deprecated public static String makeHtmlValid(String description)
description - Javadoc description with HTML tags, may be null.null.@Deprecated public static String toText(String html)
HtmlToPlainTextConverterhtml - The HTML fragment to convert to plain text, may be null.null.public static String discoverPackageName(org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
pluginDescriptor - not null@Deprecated public static boolean isMavenReport(String impl, org.apache.maven.project.MavenProject project) throws IllegalArgumentException
PluginUtils.isMavenReport(String, MavenProject) instead.impl - a Mojo implementation, not nullproject - a MavenProject instance, could be nulltrue is the Mojo implementation implements MavenReport,
false otherwise.IllegalArgumentException - if anyCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.