public class MavenUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static File[] |
getFiles(org.apache.maven.artifact.Artifact... dependencies) |
static File[] |
getFiles(Collection<org.apache.maven.artifact.Artifact>... dependencies) |
static Set<File> |
getFilesSet(Collection<org.apache.maven.artifact.Artifact>... dependenciesSet) |
static String |
getFlexMojosVersion() |
static File |
getFontsFile(org.apache.maven.model.Build build)
Returns the file reference to the fonts file.
|
static File |
getLocaleResourcePath(String resourceBundlePath,
String locale)
Returns the file reference to a localize resourceBundlePath.
|
static String |
getRuntimeLocaleOutputName(String sample,
org.apache.maven.artifact.Artifact artifact,
String locale) |
static String |
getRuntimeLocaleOutputPath(String sample,
org.apache.maven.artifact.Artifact artifact,
String locale,
String extension) |
static String |
interpolateRslUrl(String baseUrl,
org.apache.maven.artifact.Artifact artifact,
String extension,
String contextRoot) |
static boolean |
isLinux()
Return a boolean to show if we are running on Linux.
|
static boolean |
isMac()
Return a boolean to show if we are running on Mac OS X.
|
static boolean |
isSolaris()
Return a boolean to show if we are running on Solaris.
|
static boolean |
isUnixBased()
Return a boolean to show if we are running on a unix-based OS.
|
static boolean |
isWindows()
Return a boolean to show if we are running on Windows.
|
static boolean |
isWindowsVista()
Return a boolean to show if we are running on Windows Vista.
|
static String |
osString() |
static String |
replaceArtifactCoordinatesTokens(String sample,
org.apache.maven.artifact.Artifact artifact) |
static File |
resolveResourceFile(org.apache.maven.project.MavenProject project,
String fileName)
Resolve a resource file in a maven project resources folders
|
static org.apache.maven.artifact.Artifact |
searchFor(Collection<org.apache.maven.artifact.Artifact> artifacts,
String groupId,
String artifactId,
String version,
String type,
String classifier) |
public static File resolveResourceFile(org.apache.maven.project.MavenProject project, String fileName) throws org.apache.maven.plugin.MojoFailureException
project - maven projectfileName - sugested name on pomorg.apache.maven.plugin.MojoFailureExceptionpublic static File getFontsFile(org.apache.maven.model.Build build) throws org.apache.maven.plugin.MojoExecutionException
build - Build for which to get the fonts fileorg.apache.maven.plugin.MojoExecutionException - thrown if the config file could not be copied to the build directorypublic static File getLocaleResourcePath(String resourceBundlePath, String locale)
resourceBundlePath - Path to resource bundle.locale - Localepublic static String osString()
public static boolean isWindows()
public static boolean isLinux()
public static boolean isSolaris()
public static boolean isUnixBased()
public static boolean isMac()
public static boolean isWindowsVista()
public static org.apache.maven.artifact.Artifact searchFor(Collection<org.apache.maven.artifact.Artifact> artifacts, String groupId, String artifactId, String version, String type, String classifier)
public static String getFlexMojosVersion()
public static String replaceArtifactCoordinatesTokens(String sample, org.apache.maven.artifact.Artifact artifact)
public static String interpolateRslUrl(String baseUrl, org.apache.maven.artifact.Artifact artifact, String extension, String contextRoot)
public static String getRuntimeLocaleOutputPath(String sample, org.apache.maven.artifact.Artifact artifact, String locale, String extension)
public static String getRuntimeLocaleOutputName(String sample, org.apache.maven.artifact.Artifact artifact, String locale)
public static Set<File> getFilesSet(Collection<org.apache.maven.artifact.Artifact>... dependenciesSet)
public static File[] getFiles(org.apache.maven.artifact.Artifact... dependencies)
public static File[] getFiles(Collection<org.apache.maven.artifact.Artifact>... dependencies)
Copyright © 2008–2017 Sonatype, Inc.. All rights reserved.