eu.lindenbaum.maven.erlang
Class CheckRelScript

java.lang.Object
  extended by 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

Field Summary
protected  String script
           
 
Fields inherited from interface eu.lindenbaum.maven.erlang.Script
NL
 
Constructor Summary
CheckRelScript(File relFile)
          Creates an extraction Script for a specific release file.
 
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
 

Field Detail

script

protected final String script
Constructor Detail

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
Method Detail

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 © 2012 Lindenbaum GmbH. All Rights Reserved.