| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.apache.tools.ant.ProjectComponentorg.apache.tools.ant.types.DataTypeorg.apache.tools.ant.types.selectors.BaseSelectororg.apache.tools.ant.types.selectors.MappingSelectororg.apache.tools.ant.types.selectors.DifferentSelectorpublic class DifferentSelectorextends MappingSelectorField Summary |
Fields inherited from class org.apache.tools.ant.types.selectors.MappingSelector | |
granularity, map, mapperElement, targetdir | |
Fields inherited from class org.apache.tools.ant.ProjectComponent | |
description, location, project | |
Method Summary | |
protected boolean |
|
void |
|
void |
|
Methods inherited from class org.apache.tools.ant.types.selectors.MappingSelector | |
createMapper, isSelected, selectionTest, setGranularity, setTargetdir, verifySettings | |
Methods inherited from class org.apache.tools.ant.types.selectors.BaseSelector | |
getError, isSelected, setError, validate, verifySettings | |
Methods inherited from class org.apache.tools.ant.types.DataType | |
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, setChecked, setRefid, toString, tooManyAttributes | |
Methods inherited from class org.apache.tools.ant.ProjectComponent | |
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject | |
protected boolean selectionTest(File srcfile,
File destfile)this test is our selection test that compared the file with the destfile
- Overrides:
- selectionTest in interface MappingSelector
- Parameters:
srcfile- the source filedestfile- the destination file
- Returns:
- true if the files are different
public void setIgnoreContents(boolean ignoreContents)
This flag tells the selector to ignore contents
- Parameters:
ignoreContents- if true ignore contents
- Since:
- ant 1.6.3
public void setIgnoreFileTimes(boolean ignoreFileTimes)
This flag tells the selector to ignore file times in the comparison
- Parameters:
ignoreFileTimes- if true ignore file times