org.apache.tools.ant.taskdefs.condition
public class Equals extends Object implements Condition
Since: Ant 1.4
Method Summary | |
---|---|
boolean | eval() |
void | setArg1(Object arg1)
Set the first argument |
void | setArg1(String a1)
Set the first string
|
void | setArg2(Object arg2)
Set the second argument |
void | setArg2(String a2)
Set the second string
|
void | setCasesensitive(boolean b)
Should the comparison be case sensitive? |
void | setForcestring(boolean forcestring)
Set whether to force string comparisons for non-equal, non-string objects.
|
void | setTrim(boolean b)
Should we want to trim the arguments before comparing them? |
Returns: true if the two strings are equal
Throws: BuildException if the attributes are not set correctly
Parameters: arg1 the first argument.
Since: Ant 1.8
Parameters: a1 the first string
Parameters: arg2 the second argument.
Since: Ant 1.8
Parameters: a2 the second string
Parameters: b if true use a case sensitive comparison (this is the default)
Since: Ant 1.5
Parameters: forcestring value to set
Since: Ant 1.8.1
Parameters: b if true trim the arguments
Since: Ant 1.5