org.jboss.jsfunit.ant
Class JSFUnitWarTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.jboss.jsfunit.ant.JSFUnitWarTask

public class JSFUnitWarTask
extends org.apache.tools.ant.Task


Nested Class Summary
static class JSFUnitWarTask.Filter
           
static class JSFUnitWarTask.JSFUnitFilter
           
static class JSFUnitWarTask.JSFUnitTestRunnerFilter
           
 
Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
JSFUnitWarTask()
           
 
Method Summary
 void addClasses(org.apache.tools.ant.types.FileSet classesFileSet)
          Sets the fileset that should be added to the WEB-INF/classes directory of the created archive
 void addJSFUnitFilter(JSFUnitWarTask.JSFUnitFilter jsfFilter)
          Adds a JSFFilter.
 void addLib(org.apache.tools.ant.types.FileSet libFileSet)
          Sets the fileset that should be added to the WEB-INF/lib directory of the created archive
 void addTestRunner(JSFUnitWarTask.JSFUnitTestRunnerFilter testRunnerFilter)
           
 void execute()
           
 void setAutoAddJars(java.lang.Boolean autoAddJars)
          Sets whether or not to automatically add needed jars into the WEB-INF/lib directory of the crearted archive
 void setDestfile(java.io.File destfile)
          Sets the destination for the newly created archive with JSFUnit specifics
 void setSrcfile(java.io.File srcfile)
          Sets the original archive that should have JSFUnit specifics added
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSFUnitWarTask

public JSFUnitWarTask()
Method Detail

setSrcfile

public void setSrcfile(java.io.File srcfile)
Sets the original archive that should have JSFUnit specifics added

Parameters:
srcfile - the srcfile

setDestfile

public void setDestfile(java.io.File destfile)
Sets the destination for the newly created archive with JSFUnit specifics

Parameters:
destfile -

addLib

public void addLib(org.apache.tools.ant.types.FileSet libFileSet)
Sets the fileset that should be added to the WEB-INF/lib directory of the created archive

Parameters:
libFileSet - The fileset to add

addClasses

public void addClasses(org.apache.tools.ant.types.FileSet classesFileSet)
Sets the fileset that should be added to the WEB-INF/classes directory of the created archive

Parameters:
classesFileSet -

setAutoAddJars

public void setAutoAddJars(java.lang.Boolean autoAddJars)
Sets whether or not to automatically add needed jars into the WEB-INF/lib directory of the crearted archive

Parameters:
autoAddJars - True to automatically add jars, false otherwise

addJSFUnitFilter

public void addJSFUnitFilter(JSFUnitWarTask.JSFUnitFilter jsfFilter)
Adds a JSFFilter. Note: this doesn't actually set the once JSFFilter but rather adds it to the list of already added filters.

Parameters:
jsfFilter - The JSFFilter

addTestRunner

public void addTestRunner(JSFUnitWarTask.JSFUnitTestRunnerFilter testRunnerFilter)

execute

public void execute()
Overrides:
execute in class org.apache.tools.ant.Task


Copyright © 2007-2008 JBoss Inc.. All Rights Reserved.