Methods Summary |
---|
public void | add(Condition c)Add an arbitrary condition
conditions.addElement(c);
|
public void | addAnd(And a)Add an <and> condition "container".
conditions.addElement(a);
|
public void | addAvailable(org.apache.tools.ant.taskdefs.Available a)Add an <available> condition.
conditions.addElement(a);
|
public void | addChecksum(org.apache.tools.ant.taskdefs.Checksum c)Add an <checksum> condition.
conditions.addElement(c);
|
public void | addContains(Contains test)Add a <contains> condition.
conditions.addElement(test);
|
public void | addEquals(Equals e)Add an <equals> condition.
conditions.addElement(e);
|
public void | addFilesMatch(FilesMatch test)Add a <filesmatch> condition.
conditions.addElement(test);
|
public void | addHttp(Http h)Add an <http> condition.
conditions.addElement(h);
|
public void | addIsFalse(IsFalse test)Add a <isfalse> condition.
conditions.addElement(test);
|
public void | addIsFileSelected(IsFileSelected test)Add an <isfileselected> condition.
conditions.addElement(test);
|
public void | addIsReference(IsReference i)Add an <isreference> condition.
conditions.addElement(i);
|
public void | addIsSet(IsSet i)Add an <isset> condition.
conditions.addElement(i);
|
public void | addIsTrue(IsTrue test)Add a <istrue> condition.
conditions.addElement(test);
|
public void | addNot(Not n)Add an <not> condition "container".
conditions.addElement(n);
|
public void | addOr(Or o)Add an <or> condition "container".
conditions.addElement(o);
|
public void | addOs(Os o)Add an <os> condition.
conditions.addElement(o);
|
public void | addSocket(Socket s)Add a <socket> condition.
conditions.addElement(s);
|
public void | addUptodate(org.apache.tools.ant.taskdefs.UpToDate u)Add an <uptodate> condition.
conditions.addElement(u);
|
protected int | countConditions()Count the conditions.
return conditions.size();
|
public java.lang.Object | createDynamicElement(java.lang.String name)Create a dynamically discovered condition. Built-in conditions can
be discovered from the org.apache.tools.ant.taskdefs.condition
antlib.
Object cond = ComponentHelper.getComponentHelper(getProject())
.createComponent(CONDITION_ANTLIB + name);
if (!(cond instanceof Condition)) {
return null;
}
log("Dynamically discovered '" + name + "' " + cond,
Project.MSG_DEBUG);
add((Condition) cond);
return cond;
|
protected final java.util.Enumeration | getConditions()Iterate through all conditions.
return conditions.elements();
|
public java.lang.String | getTaskName()Returns the name to use in logging messages.
return taskName;
|
public void | setTaskName(java.lang.String name)Sets the name to use in logging messages.
this.taskName = name;
|