org.apache.tools.ant.taskdefs.condition

Class IsFailure

public class IsFailure extends Object implements Condition

Condition to test a return-code for failure.

Since: Ant 1.7

Method Summary
booleaneval()
Fulfill the condition interface.
intgetCode()
Get the return code that will be checked by this IsFailure condition.
voidsetCode(int c)
Set the return code to check.

Method Detail

eval

public boolean eval()
Fulfill the condition interface.

Returns: the result of evaluating the specified return code.

getCode

public int getCode()
Get the return code that will be checked by this IsFailure condition.

Returns: return code as int.

setCode

public void setCode(int c)
Set the return code to check.

Parameters: c the return code.