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

public Class IsFailure

extends Object
implements Condition
Class Inheritance
All Implemented Interfaces
org.apache.tools.ant.taskdefs.condition.Condition
Imports
org.apache.tools.ant.taskdefs.Execute

Condition to test a return-code for failure.
Since
Ant 1.7

Field Summary

Modifier and TypeField and Description
private int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

the result of evaluating the specified return code.
eval
()

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

Fulfill the condition interface.
public int

Returns:

return code as int.
getCode
()

Get the return code that will be checked by this IsFailure condition.

public void
setCode(int
the return code.
c
)

Set the return code to check.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

codeback to summary
private int code

Constructor Detail

IsFailureback to summary
public IsFailure()

Method Detail

evalback to summary
public boolean eval()

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

Fulfill the condition interface.

Returns:boolean

the result of evaluating the specified return code.

getCodeback to summary
public int getCode()

Get the return code that will be checked by this IsFailure condition.

Returns:int

return code as int.

setCodeback to summary
public void setCode(int c)

Set the return code to check.

Parameters
c:int

the return code.