eu.lindenbaum.maven.erlang
Class CheckAppUpScript
java.lang.Object
eu.lindenbaum.maven.erlang.CheckAppUpScript
- All Implemented Interfaces:
- Script<String>
public class CheckAppUpScript
- extends Object
A Script
that checks the integrity (correct term format) of an
application upgrade file.
- 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. |
String |
handle(com.ericsson.otp.erlang.OtpErlangObject result)
Converts the result of the Script execution into an error string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
script
protected final String script
CheckAppUpScript
public CheckAppUpScript(File appUpFile,
String version)
throws org.apache.maven.plugin.MojoExecutionException
- Creates a
Script
that checks a specific application upgrade file.
- Parameters:
appUpFile
- the upgrade file to checkversion
- the version of the application
- Throws:
org.apache.maven.plugin.MojoExecutionException
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 String handle(com.ericsson.otp.erlang.OtpErlangObject result)
- Converts the result of the
Script
execution into an error string.
- Parameters:
result
- to convert
- Returns:
- An error string describing the error or
null
if none.
Copyright © 2012 Lindenbaum GmbH. All Rights Reserved.