eu.lindenbaum.maven.erlang
Class CheckAppUpScript

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

Field Summary
protected  String script
           
 
Fields inherited from interface eu.lindenbaum.maven.erlang.Script
NL
 
Constructor Summary
CheckAppUpScript(File appUpFile, String version)
          Creates a Script that checks a specific application upgrade file.
 
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
 

Field Detail

script

protected final String script
Constructor Detail

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 check
version - the version of the application
Throws:
org.apache.maven.plugin.MojoExecutionException
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 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.