Top Description Constructors Methods
org.apache.tools.ant.taskdefs.condition

public Class And

extends ConditionBase
implements Condition
Class Inheritance
All Implemented Interfaces
org.apache.tools.ant.taskdefs.condition.Condition
Imports
org.apache.tools.ant.BuildException, org.apache.tools.ant.util.StreamUtils

<and> condition container.

Iterates over all conditions and returns false as soon as one evaluates to false.

Since
Ant 1.4

Constructor Summary

AccessConstructor and Description
public
And()

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if all the contained conditions evaluates to true
eval
()

Implements org.apache.tools.ant.taskdefs.condition.Condition.eval.

Is this condition true?
Inherited from org.apache.tools.ant.taskdefs.condition.ConditionBase:
addaddAndaddAvailableaddChecksumaddContainsaddEqualsaddFilesMatchaddHttpaddIsFalseaddIsFileSelectedaddIsReferenceaddIsSetaddIsTrueaddNotaddOraddOsaddSocketaddUptodatecountConditionsgetConditionsgetTaskNamesetTaskName

Constructor Detail

Andback to summary
public And()

Method Detail

evalback to summary
public boolean eval() throws BuildException

Implements org.apache.tools.ant.taskdefs.condition.Condition.eval.

Doc from org.apache.tools.ant.taskdefs.condition.Condition.eval.

Is this condition true?

Returns:boolean

true if all the contained conditions evaluates to true

Annotations
@Override
Exceptions
BuildException:
if an error occurs