|
|||||||||||
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.apache.commons.attributes.validation.AttributeValidatorTask
Ant task that validates attributes. Usage:
<taskdef resource="org/apache/commons/attributes/anttasks.properties"/>
<attribute-validator jarFile="myclasses.jar">
<classpath>
...
</classpath>
<validator class="my.Validator"/>
<validator class="my.other.Validator"/>
</attribute-validator>
The task will run the validator(s) with the classes the given jar file.
Nested Class Summary | |
static class |
AttributeValidatorTask.Validator
|
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 | |
AttributeValidatorTask()
|
Method Summary | |
org.apache.tools.ant.types.Path |
createClasspath()
|
AttributeValidatorTask.Validator |
createValidator()
|
void |
execute()
|
protected void |
findJarFile()
|
void |
setBaseName(File baseName)
|
void |
setJarfile(File jarFile)
|
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 AttributeValidatorTask()
Method Detail |
public void setJarfile(File jarFile)
public void setBaseName(File baseName)
public org.apache.tools.ant.types.Path createClasspath()
public AttributeValidatorTask.Validator createValidator()
protected void findJarFile() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
public void execute() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |