public final class PluginUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String[] |
findSources(String basedir,
String include) |
static String[] |
findSources(String basedir,
String include,
String exclude) |
static boolean |
isMavenReport(String mojoClassName,
org.apache.maven.project.MavenProject project) |
static void |
sortMojoParameters(List<org.apache.maven.plugin.descriptor.Parameter> parameters)
Sorts the specified mojo parameters by name.
|
static void |
sortMojos(List<org.apache.maven.plugin.descriptor.MojoDescriptor> mojoDescriptors)
Sorts the specified mojo descriptors by goal name.
|
public static String[] findSources(String basedir, String include)
basedir
- not nullinclude
- not nullpublic static String[] findSources(String basedir, String include, String exclude)
basedir
- not nullinclude
- not nullexclude
- could be nullpublic static void sortMojos(List<org.apache.maven.plugin.descriptor.MojoDescriptor> mojoDescriptors)
mojoDescriptors
- The mojo descriptors to sort, may be null
.MojoDescriptor.getGoal()
public static void sortMojoParameters(List<org.apache.maven.plugin.descriptor.Parameter> parameters)
parameters
- The mojo parameters to sort, may be null
.Parameter.getName()
public static boolean isMavenReport(String mojoClassName, org.apache.maven.project.MavenProject project) throws IllegalArgumentException
mojoClassName
- a fully qualified Mojo implementation class name, not nullproject
- a MavenProject instance, could be nulltrue
if the Mojo class implements MavenReport
,
false
otherwise.IllegalArgumentException
- if anyCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.