public class DateTimeBefore
extends org.apache.tools.ant.taskdefs.condition.IsTrue
implements org.apache.tools.ant.taskdefs.condition.Condition
| Constructor and Description |
|---|
DateTimeBefore() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
eval() |
void |
setDatetime1(java.lang.String date)
Sets the first date/timestamp, required.
|
void |
setDatetime2(java.lang.String date)
Sets the other date/time stamp, required.
|
void |
setFormat(java.lang.String format)
Sets the format of the datetimes, this is a required attribute.
|
void |
setLenient(boolean b)
Sets whether the datetime parser should use lenient parsing.
|
public void setDatetime1(java.lang.String date)
date - a string representing a date or time.public void setDatetime2(java.lang.String date)
date - a string representing a date or time.public void setFormat(java.lang.String format)
format - The new format valuepublic void setLenient(boolean b)
b - The new lenient valuepublic boolean eval()
throws org.apache.tools.ant.BuildException
eval in interface org.apache.tools.ant.taskdefs.condition.Conditioneval in class org.apache.tools.ant.taskdefs.condition.IsTrueorg.apache.tools.ant.BuildException - if the attributes are not set correctly