eu.lindenbaum.maven.erlang
Class CheckAppScript
java.lang.Object
eu.lindenbaum.maven.erlang.CheckAppScript
- All Implemented Interfaces:
- Script<CheckAppResult>
public final class CheckAppScript
- extends Object
A Script that can be used to extract certain values from an erlang
application file.
- Author:
- Tobias Schlager , Olle Törnström
| Fields inherited from interface eu.lindenbaum.maven.erlang.Script |
NL |
|
Method Summary |
String |
get()
Returns an evaluateable String containing the erlang script of the
implementing class. |
CheckAppResult |
handle(com.ericsson.otp.erlang.OtpErlangObject result)
Converts the result of the Script execution into a
CheckAppResult bean holding interesting values from the application
file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
script
protected final String script
CheckAppScript
public CheckAppScript(File appFile)
throws org.apache.maven.plugin.MojoExecutionException
- Creates an extraction
Script for a specific application file.
- Parameters:
appFile - to extract values from
- Throws:
org.apache.maven.plugin.MojoExecutionException- See Also:
- http://www.erlang.org/doc/man/app.html
get
public String get()
- Description copied from interface:
Script
- Returns an evaluateable
String containing the erlang script of the
implementing class.
- Returns:
- An erlang script that can be evaluated.
handle
public CheckAppResult handle(com.ericsson.otp.erlang.OtpErlangObject result)
- Converts the result of the
Script execution into a
CheckAppResult bean holding interesting values from the application
file.
- Parameters:
result - The return term of the Script execution.
- Returns:
- An object capable of delivering the results transparently.
Copyright © 2011 Lindenbaum GmbH. All Rights Reserved.