|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.lindenbaum.maven.util.MojoUtils
public final class MojoUtils
Containing utilities related to maven-erlang-plugin specific Mojos.
| Constructor Summary | |
|---|---|
MojoUtils()
|
|
| Method Summary | |
|---|---|
static List<File> |
getApplicationCodePaths(Properties p)
Gathers a complete list of directories used as code paths in an application's build process. |
static List<File> |
getApplicationTestCodePaths(Properties p)
Gathers a complete list of directories used as code paths in an application's test build process. |
static List<File> |
getIncludeDirectories(Properties p)
Gathers a complete list of directories used as include directories in a standard compilation process. |
static List<File> |
getReleaseCodePaths(Properties p)
Gathers a complete list of directories used as code paths in a release build process. |
static List<File> |
getTestIncludeDirectories(Properties p)
Gathers a complete list of directories used as include directories in a test compilation process. |
static Collection<File> |
getTestSupportArtifacts(Properties p)
Returns a list of artifacts used by the plugin to provide a proper test phase, e.g. the compiled artifacts of getTestSupportScripts(Properties). |
static Collection<File> |
getTestSupportScripts(Properties p)
Returns a list of script files used by the plugin to provide a proper test phase, e.g. erlang scripts for surefire reports. |
static boolean |
isWindows()
Returns whether the executing JVM is running under Microsoft Windows or not. |
static boolean |
newerFilesThan(File dir,
File reference)
Returns whether there are erlang source/header files in a specific directory (recursive) having a newer modification time than a given reference file. |
static void |
startBackend(org.apache.maven.plugin.logging.Log log,
String cmd,
String nodeName,
String nodeCookie)
Attaches the plugin to a backend erlang node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MojoUtils()
| Method Detail |
|---|
public static Collection<File> getTestSupportScripts(Properties p)
p - the properties object containing plug-in paths
null collection of test support scriptspublic static Collection<File> getTestSupportArtifacts(Properties p)
getTestSupportScripts(Properties).
p - the properties object containing plug-in paths
null collection of test support artifacts
public static boolean isWindows()
throws org.apache.maven.plugin.MojoExecutionException
true on Microsoft Windows systems, false otherwise
org.apache.maven.plugin.MojoExecutionException - in case the 'os.name' property is not set
public static void startBackend(org.apache.maven.plugin.logging.Log log,
String cmd,
String nodeName,
String nodeCookie)
throws org.apache.maven.plugin.MojoExecutionException
log - logger to usecmd - path to the erl commandnodeName - name of the backend to connect tonodeCookie - cookie of the backend to connect to
org.apache.maven.plugin.MojoExecutionException
public static boolean newerFilesThan(File dir,
File reference)
dir - input directory to checkreference - the file taken as reference time (modified)
public static List<File> getIncludeDirectories(Properties p)
p - the properties object containing some of the include directories
null list of include directoriespublic static List<File> getTestIncludeDirectories(Properties p)
p - the properties object containing some of the include directories
null list of include directoriespublic static List<File> getApplicationCodePaths(Properties p)
p - the properties object containing the code path directories
null list of code path directoriespublic static List<File> getApplicationTestCodePaths(Properties p)
p - the properties object containing the code path directories
null list of code path directoriespublic static List<File> getReleaseCodePaths(Properties p)
p - the properties object containing the code path directories
null list of code path directories
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||