public class MojoHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static double[] |
TIME_FACTORS |
protected static String[] |
TIME_UNITES |
| Constructor and Description |
|---|
MojoHelper() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
addResourceDir(File dir,
org.apache.maven.project.MavenProject project,
List<?> resources,
String... includes)
Add the directory as a resource in the given resource list.
|
static boolean |
addResourceDir(File dir,
org.apache.maven.project.MavenProject project,
String... includes)
Add the directory as a resource of the given project.
|
static String |
convert(long value,
double[] factors,
String[] unites) |
static String |
convertTime(long value) |
static String |
getArtifactId(org.apache.maven.artifact.Artifact artifact) |
static String |
getArtifactName(org.apache.maven.project.MavenProject project) |
static List<String> |
getParams(String params) |
static String |
getProjectName(org.apache.maven.project.MavenProject project) |
static URL |
getUrl(URL baseUrl,
String suffix)
suffix a given
baseUrl with the given suffix |
static Comparator<org.apache.maven.project.MavenProject> |
newMavenProjectComparator() |
static Comparator<org.apache.maven.project.MavenProject> |
newMavenProjectComparatorByName() |
protected static final double[] TIME_FACTORS
protected static final String[] TIME_UNITES
public static boolean addResourceDir(File dir, org.apache.maven.project.MavenProject project, String... includes)
dir - the directory to addproject - the project to updateincludes - the includes of the resourcetrue if the resources was added (not already existing)public static boolean addResourceDir(File dir, org.apache.maven.project.MavenProject project, List<?> resources, String... includes)
dir - the directory to addproject - the project involvedresources - the list of existing resourcesincludes - includes of the new resourcestrue if the resource was added (not already existing)public static Comparator<org.apache.maven.project.MavenProject> newMavenProjectComparator()
public static Comparator<org.apache.maven.project.MavenProject> newMavenProjectComparatorByName()
public static String convertTime(long value)
public static URL getUrl(URL baseUrl, String suffix)
baseUrl with the given suffixbaseUrl - base url to usesuffix - suffix to addpublic static String getArtifactId(org.apache.maven.artifact.Artifact artifact)
public static String getArtifactName(org.apache.maven.project.MavenProject project)
public static String getProjectName(org.apache.maven.project.MavenProject project)
Copyright © 2010–2019 MojoHaus. All rights reserved.