org.apache.tools.ant.taskdefs
public static class: PreSetDefTest.DefaultTest [javadoc |
source]
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.PreSetDefTest$DefaultTest
All Implemented Interfaces:
Cloneable
A test class to check default properties
| Field Summary |
|---|
| boolean | isSet | |
| boolean | attribute | |
| Method from org.apache.tools.ant.taskdefs.PreSetDefTest$DefaultTest Summary: |
|---|
|
execute, setAttribute |
| Methods from org.apache.tools.ant.Task: |
|---|
|
bindToOwner, execute, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, markInvalid, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Method from org.apache.tools.ant.taskdefs.PreSetDefTest$DefaultTest Detail: |
public void execute() {
getProject().log("attribute is " + attribute);
}
|
public void setAttribute(boolean b) {
if (isSet) {
throw new BuildException("Attribute Already set");
}
attribute = b;
isSet = true;
}
|