|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task org.jboss.jsfunit.ant.JSFUnitWarTask
public class JSFUnitWarTask
This class provides for an Ant task that will "JSFUnify" a WAR.
Nested Class Summary | |
---|---|
static class |
JSFUnitWarTask.Filter
This class represents a filter declaration and mapping that will be added to web.xml. |
static class |
JSFUnitWarTask.JSFUnitFilter
This class represents the JSFUnitFilter that will be added to web.xml. |
static class |
JSFUnitWarTask.JSFUnitTestRunnerFilter
This class represents the ServletTestFilter that may be added to web.xml. |
Field Summary |
---|
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 | |
---|---|
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)
Add the ServletTestRunner filter to web.xml. |
void |
execute()
Execute the ant task. |
void |
setAutoAddJars(Boolean autoAddJars)
Sets whether or not to automatically add needed jars into the WEB-INF/lib directory of the crearted archive. |
void |
setContainer(String containerId)
Set the container Id for the target WAR. |
void |
setDestfile(File destfile)
Sets the destination for the newly created archive with JSFUnit specifics |
void |
setSrcfile(File srcfile)
Sets the original archive that should have JSFUnit specifics added |
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 |
---|
public JSFUnitWarTask()
Method Detail |
---|
public void setContainer(String containerId)
containerId
- "jboss5x" or ""public void setSrcfile(File srcfile)
srcfile
- A WAR file or a directory containing an exploded WAR.public void setDestfile(File destfile)
destfile
- The destination WAR or directory for an exploded WAR.public void addLib(org.apache.tools.ant.types.FileSet libFileSet)
libFileSet
- The fileset to addpublic void addClasses(org.apache.tools.ant.types.FileSet classesFileSet)
classesFileSet
- Files to be added to WEB-INF/classespublic void setAutoAddJars(Boolean autoAddJars)
autoAddJars
- True to automatically add jars, false otherwisepublic void addJSFUnitFilter(JSFUnitWarTask.JSFUnitFilter jsfFilter)
jsfFilter
- The JSFFilterpublic void addTestRunner(JSFUnitWarTask.JSFUnitTestRunnerFilter testRunnerFilter)
testRunnerFilter
- An instance of JSFUnitTestRunnerFilterpublic void execute()
execute
in class org.apache.tools.ant.Task
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |