eu.lindenbaum.maven.erlang
Class MakeScriptScript

java.lang.Object
  extended by eu.lindenbaum.maven.erlang.MakeScriptScript
All Implemented Interfaces:
Script<GenericScriptResult>

public final class MakeScriptScript
extends Object

A Script generating release scripts using systools:make_script/2.

Author:
Tobias Schlager , Olle Törnström

Field Summary
protected  String script
           
 
Fields inherited from interface eu.lindenbaum.maven.erlang.Script
NL
 
Constructor Summary
MakeScriptScript(File releaseFile, File outdir, String options)
          Creates a Script generating the erlang boot scripts for an OTP release.
 
Method Summary
 String get()
          Returns an evaluateable String containing the erlang script of the implementing class.
 GenericScriptResult handle(com.ericsson.otp.erlang.OtpErlangObject result)
          Converts the result of the Script execution into an object capable of logging the errors/warnings as well as returning the script result.
 
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

MakeScriptScript

public MakeScriptScript(File releaseFile,
                        File outdir,
                        String options)
                 throws org.apache.maven.plugin.MojoExecutionException
Creates a Script generating the erlang boot scripts for an OTP release.

Parameters:
releaseFile - to generate scripts for
outdir - to place the generated scripts into
options - additional info according to erlang documentation, maybe null
Throws:
org.apache.maven.plugin.MojoExecutionException
See Also:
http://www.erlang.org/doc/man/systools.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 GenericScriptResult handle(com.ericsson.otp.erlang.OtpErlangObject result)
Converts the result of the Script execution into an object capable of logging the errors/warnings as well as returning the script result.

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.