net.cordova.prounit
Class ProUnit

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by com.phenix.pct.PCT
              extended by com.phenix.pct.PCTRun
                  extended by net.cordova.prounit.ProUnit
All Implemented Interfaces:
Cloneable

public class ProUnit
extends PCTRun

Ant task for ProUnit tests. For more details about ProUnit, see the SourceForge project's page or ProUnit's website.

Version:
$Revision$
Author:
Gilles QUERRET

Field Summary
 
Fields inherited from class com.phenix.pct.PCTRun
dbConnList, exec, initID, initProc, internalPropath, outputParameters, outputStream, outputStreamID, pctLib, plID, procedure, propath, runParameters, status, statusID
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location
 
Constructor Summary
ProUnit()
           
 
Method Summary
 void execute()
          Do the work
 void setProject(File project)
          Path to the XML file saved using ProUnit GUI version.
 void setResult(File result)
          Path to the resulting execution file (XML).
 void setTemplate(String template)
          Template used to format the result file.
 void setVerbose(boolean verbose)
          Configures execution to be silent or to show execution progress and results
 
Methods inherited from class com.phenix.pct.PCTRun
addOption, addOutputParameter, addParameter, addPCTConnection, addPCTRunOption, addPropath, cleanup, createPropath, escapeString, getCmdLineParameters, getDebugPCT, getStatusFileName, isPrepared, maybeSetResultPropertyValue, prepareExecTask, preparePropath, setBaseDir, setCenturyYearOffset, setCompileUnderscore, setCpInternal, setCpStream, setDebugPCT, setDebugReady, setDirSize, setExecTaskParams, setFailOnError, setGraphicalMode, setIniFile, setInputChars, setMaximumMemory, setMsgBufferSize, setNumDec, setNumSep, setParameter, setParameters, setParamFile, setProcedure, setResultProperty, setStackSize, setTempDir, setToken, setTTBufferSize
 
Methods inherited from class com.phenix.pct.PCT
addEnv, checkDlcHome, deleteDirectory, extractPL, extractPL, getDlcBin, getDlcHome, getDLCMaintenanceVersion, getDLCMajorVersion, getDLCMinorVersion, getDLCPatchLevel, getDLCRevision, getEnvironment, getExecPath, getFullVersion, getIncludedPL, getJavaFileset, getJavaFileset, getProgressProcedures, getRCodeVersion, getReducedVersion, isSourceCodeUsed, nextRandomInt, setDlcBin, setDlcHome, setDlcJava, setIncludedPL
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProUnit

public ProUnit()
Method Detail

setProject

public void setProject(File project)
Path to the XML file saved using ProUnit GUI version.

Parameters:
project - Mandatory

setResult

public void setResult(File result)
Path to the resulting execution file (XML).

Parameters:
result - Optional

setTemplate

public void setTemplate(String template)
Template used to format the result file.

Parameters:
template - Optional

setVerbose

public void setVerbose(boolean verbose)
Configures execution to be silent or to show execution progress and results

Parameters:
verbose - Optional, defaults to false

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Description copied from class: PCTRun
Do the work

Overrides:
execute in class PCTRun
Throws:
org.apache.tools.ant.BuildException - Something went wrong


Copyright © 2003-2011 Gilles QUERRET. All Rights Reserved.