Class And
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.taskdefs.condition.ConditionBase
org.apache.tools.ant.taskdefs.condition.And
<and> condition container.
Iterates over all conditions and returns false as soon as one evaluates to false.
- Since:
- Ant 1.4
-
Field Summary
Fields inherited from class ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ConditionBase
add, addAnd, addAvailable, addChecksum, addContains, addEquals, addFilesMatch, addHttp, addIsFalse, addIsFileSelected, addIsReference, addIsSet, addIsTrue, addNot, addOr, addOs, addSocket, addUptodate, countConditions, getConditions, getTaskName, setTaskNameModifier and TypeMethodDescriptionvoidAdd an arbitrary conditionvoidAdd an <and> condition "container".voidAdd an <available> condition.voidAdd an <checksum> condition.voidaddContains(Contains test) Add a <contains> condition.voidAdd an <equals> condition.voidaddFilesMatch(FilesMatch test) Add a <filesmatch> condition.voidAdd an <http> condition.voidaddIsFalse(IsFalse test) Add a <isfalse> condition.voidAdd an <isfileselected> condition.voidAdd an <isreference> condition.voidAdd an <isset> condition.voidAdd a <istrue> condition.voidAdd an <not> condition "container".voidAdd an <or> condition "container".voidAdd an <os> condition.voidAdd a <socket> condition.voidAdd an <uptodate> condition.protected intCount the conditions.protected final Enumeration<Condition> Iterate through all conditions.Returns the name to use in logging messages.voidsetTaskName(String name) Sets the name to use in logging messages.Methods inherited from class ProjectComponent
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectModifier and TypeMethodDescriptionclone()Returns the description of the current action.Returns the file/location where this task was defined.Returns the project to which this component belongs.voidLogs a message with the default (INFO) priority.voidLogs a message with the given priority.voidsetDescription(String desc) Sets a description of the current action.voidsetLocation(Location location) Sets the file/location where this task was defined.voidsetProject(Project project) Sets the project object of this component.
-
Constructor Details
-
And
public And()
-
-
Method Details
-
eval
Description copied from interface:ConditionIs this condition true?- Specified by:
evalin interfaceCondition- Returns:
- true if all the contained conditions evaluates to true
- Throws:
BuildException- if an error occurs
-