public class TestClassValidatorTask
extends org.apache.tools.ant.Task
<taskdef name="TestValidator"
classname="junitx.ant.TestClassValidatorTask"
classpath="junit-addons-3.7.x.jar" />
<validator verbose="off">
<classpath>
<pathelement location="classes" />
<fileset dir="lib">
<include name="\*\*.jar"/>
<include name="\*\*.zip"/>
</fileset>
</classpath>
<fileset dir="classes">
<include name="*-/*Suite.class"/>
<include name="*-/*Test.class"/>
</fileset>
</validator>
| Constructor and Description |
|---|
TestClassValidatorTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFileset(org.apache.tools.ant.types.FileSet set)
Add a new fileset instance to this task.
|
org.apache.tools.ant.types.Path |
createClasspath()
Creates a nested classpath element
|
void |
execute()
Called by the project to let the task do it's work.
|
void |
setClasspath(org.apache.tools.ant.types.Path classpath)
Set the classpath to be used for this validation.
|
void |
setClasspathRef(org.apache.tools.ant.types.Reference r)
Adds a reference to a CLASSPATH defined elsewhere.
|
void |
setVerbose(boolean verbose)
Used to force listing of all names of processed files.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildException - if someting goes wrong with the buildpublic void setClasspath(org.apache.tools.ant.types.Path classpath)
public org.apache.tools.ant.types.Path createClasspath()
public void setClasspathRef(org.apache.tools.ant.types.Reference r)
public void addFileset(org.apache.tools.ant.types.FileSet set)
set - the new fileset containing the rules to get the testcases.public void setVerbose(boolean verbose)
verbose - "true" or "on"Copyright © ${project.year} ${project.holder}. All Rights Reserved.