eu.lindenbaum.maven.erlang
Class CreateRELEASESScript

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

public class CreateRELEASESScript
extends Object

A Script that creates an initial RELEASES file from a specific release file.

Author:
Tobias Schlager

Field Summary
protected  String script
           
 
Fields inherited from interface eu.lindenbaum.maven.erlang.Script
NL
 
Constructor Summary
CreateRELEASESScript(File rootDir, File relFile)
           
 
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 message.
 
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

CreateRELEASESScript

public CreateRELEASESScript(File rootDir,
                            File relFile)
                     throws org.apache.maven.plugin.MojoExecutionException
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 message.

Parameters:
result - The return term of the Script execution.
Returns:
"ok" in case of success, a failure message in case of errors


Copyright © 2011 Lindenbaum GmbH. All Rights Reserved.