eu.lindenbaum.maven.erlang
Class MakeRelupScript

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

public final class MakeRelupScript
extends Object

A Script creating a release upgrade file template using systools:make_relup/4.

Since:
2.1.0
Author:
Tobias Schlager

Field Summary
protected  String script
           
 
Fields inherited from interface eu.lindenbaum.maven.erlang.Script
NL
 
Constructor Summary
MakeRelupScript(File relupFile, File relFile, List<String> releases, List<File> paths)
          Creates a Script generating a release upgrade file.
 
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

MakeRelupScript

public MakeRelupScript(File relupFile,
                       File relFile,
                       List<String> releases,
                       List<File> paths)
                throws org.apache.maven.plugin.MojoExecutionException
Creates a Script generating a release upgrade file.

Parameters:
relupFile - the target relup template file to write
relFile - the current release file to generate instructions for
releases - a list of earlier versions to generate instructions for
paths - a list of paths needed to find the relevant application files
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 © 2012 Lindenbaum GmbH. All Rights Reserved.