|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.lindenbaum.maven.util.ErlUtils
public final class ErlUtils
Containing utilities related to erlang code execution.
Constructor Summary | |
---|---|
ErlUtils()
|
Method Summary | |
---|---|
static String |
eval(org.apache.maven.plugin.logging.Log log,
String expression)
Evaluate an erlang expression and return the result. |
static String |
eval(org.apache.maven.plugin.logging.Log log,
String expression,
List<File> libPaths)
Evaluate an erlang expression and return the result. |
static String |
eval(org.apache.maven.plugin.logging.Log log,
String expression,
List<File> libPaths,
File workingDir)
Evaluate an erlang expression and return the result. |
static String |
exec(List<String> commands,
org.apache.maven.plugin.logging.Log log,
File workingDir,
Observer observer)
Executes the given command array in the given working directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ErlUtils()
Method Detail |
---|
public static String eval(org.apache.maven.plugin.logging.Log log, String expression) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
log
- logger.expression
- the expression to evaluate.
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
public static String eval(org.apache.maven.plugin.logging.Log log, String expression, List<File> libPaths) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
log
- loggerexpression
- the expression to evaluate.libPaths
- list of paths to add to the path, maybe null
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
public static String eval(org.apache.maven.plugin.logging.Log log, String expression, List<File> libPaths, File workingDir) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
log
- loggerexpression
- the expression to evaluate.libPaths
- list of paths to add to the path, maybe null
workingDir
- the working directory for the spawned process, maybe
null
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
public static String exec(List<String> commands, org.apache.maven.plugin.logging.Log log, File workingDir, Observer observer) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
Observer
is notfied to process the
result.
commands
- to executelog
- used to log errorsworkingDir
- the working directory for the spawned process, maybe
null
observer
- to be notified on process completion
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |