|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.tools.plugin.util.PluginUtils
public final class PluginUtils
Convenience methods to play with Maven plugins.
Field Summary | |
---|---|
static Map<String,String> |
MAVEN_COMPONENTS
Expression associated with class types to recognize Maven objects (injected in fact as parameters by maven-core's PluginParameterExpressionEvaluator) like components ("real" components are injected by Plexus). |
Method Summary | |
---|---|
static String[] |
findSources(String basedir,
String include)
|
static String[] |
findSources(String basedir,
String include,
String exclude)
|
static void |
sortMojoParameters(List<Parameter> parameters)
Sorts the specified mojo parameters by name. |
static void |
sortMojos(List<MojoDescriptor> mojoDescriptors)
Sorts the specified mojo descriptors by goal name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Map<String,String> MAVEN_COMPONENTS
Method Detail |
---|
public static String[] findSources(String basedir, String include)
basedir
- not nullinclude
- not null
public static String[] findSources(String basedir, String include, String exclude)
basedir
- not nullinclude
- not nullexclude
- could be null
public static void sortMojos(List<MojoDescriptor> mojoDescriptors)
mojoDescriptors
- The mojo descriptors to sort, may be null
.MojoDescriptor.getGoal()
public static void sortMojoParameters(List<Parameter> parameters)
parameters
- The mojo parameters to sort, may be null
.Parameter.getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |