|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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 |
|---|
description, location, target, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
|---|
project |
| Constructor Summary | |
|---|---|
JSFUnitWarTask()
|
|
| Method Summary | |
|---|---|
void |
addClasses(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(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(java.lang.Boolean autoAddJars)
Sets whether or not to automatically add needed jars into the WEB-INF/lib directory of the crearted archive. |
void |
setContainer(java.lang.String containerId)
Set the container Id for the target WAR. |
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 |
|---|
public JSFUnitWarTask()
| Method Detail |
|---|
public void setContainer(java.lang.String containerId)
containerId - "jboss5x" or ""public void setSrcfile(java.io.File srcfile)
srcfile - A WAR file or a directory containing an exploded WAR.public void setDestfile(java.io.File destfile)
destfile - The destination WAR or directory for an exploded WAR.public void addLib(FileSet libFileSet)
libFileSet - The fileset to addpublic void addClasses(FileSet classesFileSet)
classesFileSet - Files to be added to WEB-INF/classespublic void setAutoAddJars(java.lang.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 Task
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||