eu.lindenbaum.maven.erlang
Class MakeRelupScript
java.lang.Object
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
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. |
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 |
script
protected final String script
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 writerelFile
- the current release file to generate instructions forreleases
- a list of earlier versions to generate instructions forpaths
- 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
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.