| Modifier and Type | Class and Description |
|---|---|
| public static class | IsLastModified.CompareMode
describes comparison modes. |
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private Touch. | |
| private long | |
| private IsLastModified. | |
| private Resource |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | Returns: true or false depending on the comparison mode and the time of the resourceImplements org. |
| protected long | Returns: time in millisecondsCalculate timestamp as millis either based on millis or dateTime (and pattern) attribute. |
| public void | setDatetime(String
the dateTime)String date in the specified format.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". |
| public void | setMillis(long
the millis)long timestamp to use.Set the new modification time of file(s) touched in milliseconds since midnight Jan 1 1970. |
| public void | |
| public void | setPattern(final String
the pattern)SimpleDateFormat-compatible
format pattern.Set the format of the datetime attribute. |
| protected void |
| dateTime | back to summary |
|---|---|
| private String dateTime | |
| dfFactory | back to summary |
|---|---|
| private Touch. | |
| millis | back to summary |
|---|---|
| private long millis | |
| mode | back to summary |
|---|---|
| private IsLastModified. | |
| resource | back to summary |
|---|---|
| private Resource resource | |
| IsLastModified | back to summary |
|---|---|
| public IsLastModified() | |
| add | back to summary |
|---|---|
| public void add(Resource r) The resource to test.
| |
| eval | back to summary |
|---|---|
| public boolean eval() throws BuildException Implements org. evaluate the condition
| |
| getMillis | back to summary |
|---|---|
| protected long getMillis() throws BuildException Calculate timestamp as millis either based on millis or dateTime (and pattern) attribute.
| |
| setDatetime | back to summary |
|---|---|
| public 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".
| |
| setMillis | back to summary |
|---|---|
| public void setMillis(long millis) Set the new modification time of file(s) touched in milliseconds since midnight Jan 1 1970.
| |
| setMode | back to summary |
|---|---|
| public void setMode(IsLastModified. The type of comparison to test.
| |
| setPattern | back to summary |
|---|---|
| public void setPattern(final String pattern) Set the format of the datetime attribute.
| |
| validate | back to summary |
|---|---|
| protected void validate() throws BuildException Argument validation.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| private static final IsLastModified. | |
| private static final String | |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String[] | getValues()
Implements abstract org. |
| AFTER_TEXT | back to summary |
|---|---|
| private static final String AFTER_TEXT | |
| BEFORE_TEXT | back to summary |
|---|---|
| private static final String BEFORE_TEXT | |
| EQUALS | back to summary |
|---|---|
| private static final IsLastModified. | |
| EQUALS_TEXT | back to summary |
|---|---|
| private static final String EQUALS_TEXT | |
| NOT_AFTER_TEXT | back to summary |
|---|---|
| private static final String NOT_AFTER_TEXT | |
| NOT_BEFORE_TEXT | back to summary |
|---|---|
| private static final String NOT_BEFORE_TEXT | |
| CompareMode | back to summary |
|---|---|
| public CompareMode() creates a CompareMode instance of type equals | |
| CompareMode | back to summary |
|---|---|
| public CompareMode(String s) creates a comparemode instance
| |
| getValues | back to summary |
|---|---|
| public String[] getValues() Implements abstract org. Doc from org. This is the only method a subclass needs to implement.. | |