org.flexunit.ant.tasks
Class FlexUnitTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.flexunit.ant.tasks.FlexUnitTask
All Implemented Interfaces:
java.lang.Cloneable, org.apache.tools.ant.DynamicElement

public class FlexUnitTask
extends org.apache.tools.ant.Task
implements org.apache.tools.ant.DynamicElement


Field Summary
private  TaskConfiguration configuration
           
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
FlexUnitTask()
           
 
Method Summary
 void addLibrary(org.apache.tools.ant.types.FileSet fileset)
           
 void addSource(org.apache.tools.ant.types.FileSet fileset)
           
 void addTestSource(org.apache.tools.ant.types.FileSet fileset)
           
 java.lang.Object createDynamicElement(java.lang.String arg0)
           
 void execute()
          Called by Ant to execute the task.
 void setBuffer(int size)
          The buffer size the uses for its inbound data stream.
 void setCommand(java.lang.String executableFilePath)
           
 void setDebug(boolean value)
           
 void setDisplay(int number)
           
 void setFailureproperty(java.lang.String failprop)
          Custom ant property noting test failure
 void setHaltonfailure(boolean fail)
          Should we fail the build if the flex tests fail?
 void setHeadless(boolean headless)
           
 void setLocalTrusted(boolean localTrusted)
          Sets local trusted, default is false
 void setPlayer(java.lang.String player)
           
 void setPort(int serverPort)
          Set the port to receive the test results on.
 void setProject(org.apache.tools.ant.Project project)
           
 void setSWF(java.lang.String testSWF)
          The SWF for the FlexUnit tests to run.
 void setTimeout(int timeout)
          Set the timeout for receiving the flexunit report.
 void setToDir(java.lang.String toDir)
          Set the directory to output the test reports to.
 void setVerbose(boolean verbose)
          Toggle display of descriptive messages
 void setWorkingDir(java.lang.String workingDirPath)
           
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configuration

private TaskConfiguration configuration
Constructor Detail

FlexUnitTask

public FlexUnitTask()
Method Detail

setProject

public void setProject(org.apache.tools.ant.Project project)
Overrides:
setProject in class org.apache.tools.ant.ProjectComponent

setLocalTrusted

public void setLocalTrusted(boolean localTrusted)
Sets local trusted, default is false

Parameters:
localTrusted -

setPort

public void setPort(int serverPort)
Set the port to receive the test results on. Default is 1024

Parameters:
serverPort - the port to set.

setTimeout

public void setTimeout(int timeout)
Set the timeout for receiving the flexunit report.

Parameters:
timeout - in milliseconds.

setBuffer

public void setBuffer(int size)
The buffer size the uses for its inbound data stream.


setSWF

public void setSWF(java.lang.String testSWF)
The SWF for the FlexUnit tests to run.

Parameters:
testSWF - the SWF to set.

setToDir

public void setToDir(java.lang.String toDir)
Set the directory to output the test reports to.

Parameters:
toDir - the directory to set.

setHaltonfailure

public void setHaltonfailure(boolean fail)
Should we fail the build if the flex tests fail?

Parameters:
fail -

setFailureproperty

public void setFailureproperty(java.lang.String failprop)
Custom ant property noting test failure

Parameters:
failprop -

setVerbose

public void setVerbose(boolean verbose)
Toggle display of descriptive messages

Parameters:
verbose -

setPlayer

public void setPlayer(java.lang.String player)

setCommand

public void setCommand(java.lang.String executableFilePath)

setHeadless

public void setHeadless(boolean headless)

setDisplay

public void setDisplay(int number)

addSource

public void addSource(org.apache.tools.ant.types.FileSet fileset)

addTestSource

public void addTestSource(org.apache.tools.ant.types.FileSet fileset)

addLibrary

public void addLibrary(org.apache.tools.ant.types.FileSet fileset)

setWorkingDir

public void setWorkingDir(java.lang.String workingDirPath)

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Called by Ant to execute the task.

Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException

setDebug

public void setDebug(boolean value)

createDynamicElement

public java.lang.Object createDynamicElement(java.lang.String arg0)
                                      throws org.apache.tools.ant.BuildException
Specified by:
createDynamicElement in interface org.apache.tools.ant.DynamicElement
Throws:
org.apache.tools.ant.BuildException