eu.lindenbaum.maven.erlang
Class CoverageReportScript

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

public class CoverageReportScript
extends Object

A script that returns the coverage report for some project.

Author:
Olle Törnström

Field Summary
protected  String script
           
 
Fields inherited from interface eu.lindenbaum.maven.erlang.Script
NL
 
Constructor Summary
CoverageReportScript(File testDir, List<File> tests, List<File> sources)
           
 
Method Summary
 String get()
          Returns an evaluateable String containing the erlang script of the implementing class.
 CoverageReportResult handle(com.ericsson.otp.erlang.OtpErlangObject output)
          Converts the result term of the Script execution into another representation.
 
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

CoverageReportScript

public CoverageReportScript(File testDir,
                            List<File> tests,
                            List<File> sources)
                     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 CoverageReportResult handle(com.ericsson.otp.erlang.OtpErlangObject output)
Description copied from interface: Script
Converts the result term of the Script execution into another representation.

Parameters:
output - The return term of the Script execution.
Returns:
A Script specific (converted) return value.


Copyright © 2011 Lindenbaum GmbH. All Rights Reserved.