org.codehaus.mojo.emma.task
Class AbstractTask

java.lang.Object
  extended by org.codehaus.mojo.emma.task.AbstractTask
Direct Known Subclasses:
InstrumentTask, ReportTask

public abstract class AbstractTask
extends Object

Abstract class for executing EMMA actions.

Author:
Alexandre ROMAN

Constructor Summary
AbstractTask()
           
 
Method Summary
protected  String[] getCanonicalPaths(File[] files)
          Returns the canonical paths of an array of files.
 File getOutputDirectory()
          Gets the output directory.
 boolean isVerbose()
          Is the task verbose.
 void setOutputDirectory(File outputDirectory)
          Sets the output directory.
 void setVerbose(boolean verbose)
          Sets the verbosity of the task.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTask

public AbstractTask()
Method Detail

isVerbose

public boolean isVerbose()
Is the task verbose.

Returns:
true if the task is verbose.

setVerbose

public void setVerbose(boolean verbose)
Sets the verbosity of the task.

Parameters:
verbose - true if the task is verbose.

getOutputDirectory

public File getOutputDirectory()
Gets the output directory.

Returns:
the output directory.

setOutputDirectory

public void setOutputDirectory(File outputDirectory)
Sets the output directory.

Parameters:
outputDirectory - the output directory.

getCanonicalPaths

protected String[] getCanonicalPaths(File[] files)
                              throws IOException
Returns the canonical paths of an array of files.

Parameters:
files - the files.
Returns:
the canonical paths of an array of files.
Throws:
IOException - if things went wrong.


Copyright © 2007-2012 Codehaus. All Rights Reserved.