eu.lindenbaum.maven.erlang
Class CheckRelScript
java.lang.Object
eu.lindenbaum.maven.erlang.CheckRelScript
- All Implemented Interfaces:
- Script<CheckRelResult>
public class CheckRelScript
- extends Object
A Script
that can be used to extract certain values from an erlang
release 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. |
CheckRelResult |
handle(com.ericsson.otp.erlang.OtpErlangObject result)
Converts the result of the Script execution into a
CheckRelResult bean holding interesting values from the release
file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
script
protected final String script
CheckRelScript
public CheckRelScript(File relFile)
throws org.apache.maven.plugin.MojoExecutionException
- Creates an extraction
Script
for a specific release file.
- Parameters:
relFile
- to extract values from
- Throws:
org.apache.maven.plugin.MojoExecutionException
- See Also:
- http://www.erlang.org/doc/man/rel.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 CheckRelResult handle(com.ericsson.otp.erlang.OtpErlangObject result)
- Converts the result of the
Script
execution into a
CheckRelResult
bean holding interesting values from the release
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.