Class Equals
- java.lang.Object
- 
- org.apache.tools.ant.taskdefs.condition.Equals
 
- 
- 
Constructor SummaryConstructors Constructor Description Equals()
 - 
Method SummaryModifier and Type Method Description booleaneval()Is this condition true?voidsetArg1(java.lang.Object arg1)Set the first argumentvoidsetArg1(java.lang.String a1)Set the first stringvoidsetArg2(java.lang.Object arg2)Set the second argumentvoidsetArg2(java.lang.String a2)Set the second stringvoidsetCasesensitive(boolean b)Should the comparison be case sensitive?voidsetForcestring(boolean forcestring)Set whether to force string comparisons for non-equal, non-string objects.voidsetTrim(boolean b)Should we want to trim the arguments before comparing them?
 
- 
- 
- 
Method Detail- 
setArg1public void setArg1(java.lang.Object arg1) Set the first argument- Parameters:
- arg1- the first argument.
- Since:
- Ant 1.8
 
 - 
setArg1public void setArg1(java.lang.String a1) Set the first string- Parameters:
- a1- the first string
 
 - 
setArg2public void setArg2(java.lang.Object arg2) Set the second argument- Parameters:
- arg2- the second argument.
- Since:
- Ant 1.8
 
 - 
setArg2public void setArg2(java.lang.String a2) Set the second string- Parameters:
- a2- the second string
 
 - 
setTrimpublic void setTrim(boolean b) Should we want to trim the arguments before comparing them?- Parameters:
- b- if true trim the arguments
- Since:
- Ant 1.5
 
 - 
setCasesensitivepublic void setCasesensitive(boolean b) Should the comparison be case sensitive?- Parameters:
- b- if true use a case sensitive comparison (this is the default)
- Since:
- Ant 1.5
 
 - 
setForcestringpublic void setForcestring(boolean forcestring) Set whether to force string comparisons for non-equal, non-string objects. This allows object properties (legal in Ant 1.8.x+) to be compared as strings.- Parameters:
- forcestring- value to set
- Since:
- Ant 1.8.1
 
 - 
evalpublic boolean eval() throws BuildExceptionDescription copied from interface:ConditionIs this condition true?- Specified by:
- evalin interface- Condition
- Returns:
- true if the two strings are equal
- Throws:
- BuildException- if the attributes are not set correctly
 
 
- 
 
-