|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ops4j.pax.construct.inherit.PluginXml
public class PluginXml
Plugin metadata, usually stored in META-INF/maven/plugin.xml
| Constructor Summary | |
|---|---|
PluginXml(java.io.File file)
Parses a file presumed to contain plugin metadata |
|
| Method Summary | |
|---|---|
org.codehaus.plexus.util.xml.Xpp3Dom |
findMojo(java.lang.String goal)
Finds a mojo descriptor with a named goal |
org.codehaus.plexus.util.xml.Xpp3Dom[] |
getMojos()
Gets all mojo descriptors |
static void |
mergeMojo(org.codehaus.plexus.util.xml.Xpp3Dom mojo,
org.codehaus.plexus.util.xml.Xpp3Dom superMojo)
Merges a mojo descriptor with its super-mojo (inherit from it) The local mojo is considered the dominant one - if any parameters, configuration or requirements match then the local version is kept. |
java.lang.String |
toString()
|
void |
write()
Writes the plugin metadata back to the file where it was loaded from |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PluginXml(java.io.File file)
throws org.codehaus.plexus.util.xml.pull.XmlPullParserException,
java.io.IOException
file - file containing plugin metadata
org.codehaus.plexus.util.xml.pull.XmlPullParserException
java.io.IOException| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic org.codehaus.plexus.util.xml.Xpp3Dom[] getMojos()
public org.codehaus.plexus.util.xml.Xpp3Dom findMojo(java.lang.String goal)
goal - mojo goal
public static void mergeMojo(org.codehaus.plexus.util.xml.Xpp3Dom mojo,
org.codehaus.plexus.util.xml.Xpp3Dom superMojo)
mojo - local mojo inheriting from superMojosuperMojo - mojo being extended
public void write()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||