org.apache.tools.ant.taskdefs.condition
public class IsLastModified extends ProjectComponent implements Condition
Since: Ant 1.8.0
| Nested Class Summary | |
|---|---|
| static class | IsLastModified.CompareMode |
| Method Summary | |
|---|---|
| void | add(Resource r)
The resource to test. |
| boolean | eval() |
| protected long | getMillis()
Calculate timestamp as millis either based on millis or
dateTime (and pattern) attribute. |
| void | setDatetime(String dateTime)
Set the new modification time of file(s) touched
in the format "MM/DD/YYYY HH:MM AM or PM"
or "MM/DD/YYYY HH:MM:SS AM or PM". |
| void | setMillis(long millis)
Set the new modification time of file(s) touched
in milliseconds since midnight Jan 1 1970. |
| void | setMode(IsLastModified.CompareMode mode)
The type of comparison to test. |
| void | setPattern(String pattern)
Set the format of the datetime attribute. |
| protected void | validate()
Argument validation. |
Parameters: dateTime the String date in the specified format.
Parameters: millis the long timestamp to use.
Parameters: pattern the SimpleDateFormat-compatible
format pattern.