FileDocCategorySizeDatePackage
IsFailure.javaAPI DocApache Ant 1.701585Wed Dec 13 06:16:22 GMT 2006org.apache.tools.ant.taskdefs.condition

IsFailure

public class IsFailure extends Object implements Condition
Condition to test a return-code for failure.
since
Ant 1.7

Fields Summary
private int
code
Constructors Summary
Methods Summary
public booleaneval()
Fulfill the condition interface.

return
the result of evaluating the specified return code.

        return Execute.isFailure(code);
    
public intgetCode()
Get the return code that will be checked by this IsFailure condition.

return
return code as int.

        return code;
    
public voidsetCode(int c)
Set the return code to check.

param
c the return code.

        code = c;