|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.maven.tools.plugin.util.PluginUtils
Convenience methods to play with Maven plugins.
| Method Summary | |
static void |
element(org.codehaus.plexus.util.xml.XMLWriter w,
java.lang.String name,
java.lang.String value)
|
static java.lang.String[] |
findSources(java.lang.String basedir,
java.lang.String include)
|
static java.lang.String[] |
findSources(java.lang.String basedir,
java.lang.String include,
java.lang.String exclude)
|
static boolean |
isMavenReport(java.lang.String impl,
org.apache.maven.project.MavenProject project)
|
static java.lang.String |
makeHtmlValid(java.lang.String description)
Fixes some javadoc comment to become a valid XHTML snippet. |
static void |
sortMojoParameters(java.util.List parameters)
Sorts the specified mojo parameters by name. |
static void |
sortMojos(java.util.List mojoDescriptors)
Sorts the specified mojo descriptors by goal name. |
static java.util.List |
toComponentDependencies(java.util.List dependencies)
|
static java.lang.String |
toText(java.lang.String html)
Converts a HTML fragment as extracted from a javadoc comment to a plain text string. |
static void |
writeDependencies(org.codehaus.plexus.util.xml.XMLWriter w,
org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static java.lang.String[] findSources(java.lang.String basedir,
java.lang.String include)
basedir - not nullinclude - not null
public static java.lang.String[] findSources(java.lang.String basedir,
java.lang.String include,
java.lang.String exclude)
basedir - not nullinclude - not nullexclude - could be null
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 java.util.List toComponentDependencies(java.util.List dependencies)
dependencies - not null list of Dependency
public static void element(org.codehaus.plexus.util.xml.XMLWriter w,
java.lang.String name,
java.lang.String value)
w - not null writername - not nullvalue - could be null
public static boolean isMavenReport(java.lang.String impl,
org.apache.maven.project.MavenProject project)
throws java.lang.IllegalArgumentException
impl - a Mojo implementation, not nullproject - a MavenProject instance, could be null
true is the Mojo implementation implements MavenReport,
false otherwise.
java.lang.IllegalArgumentException - if anypublic static java.lang.String makeHtmlValid(java.lang.String description)
description - Javadoc description with HTML tags, may be null.
null.public static void sortMojos(java.util.List mojoDescriptors)
mojoDescriptors - The mojo descriptors to sort, may be null.MojoDescriptor.getGoal()public static void sortMojoParameters(java.util.List parameters)
parameters - The mojo parameters to sort, may be null.Parameter.getName()public static java.lang.String toText(java.lang.String html)
html - The HTML fragment to convert to plain text, may be null.
null.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||