|
|
@@ -185,14 +185,12 @@ public class UpToDate extends Task implements Condition { |
|
|
|
boolean upToDate = true; |
|
|
|
if (sourceFile != null) { |
|
|
|
if (mapperElement == null) { |
|
|
|
upToDate = upToDate |
|
|
|
&& (targetFile.lastModified() >= sourceFile.lastModified()); |
|
|
|
upToDate = targetFile.lastModified() >= sourceFile.lastModified(); |
|
|
|
} else { |
|
|
|
SourceFileScanner sfs = new SourceFileScanner(this); |
|
|
|
upToDate = upToDate |
|
|
|
&& (sfs.restrict(new String[] {sourceFile.getAbsolutePath()}, |
|
|
|
upToDate = sfs.restrict(new String[] {sourceFile.getAbsolutePath()}, |
|
|
|
null, null, |
|
|
|
mapperElement.getImplementation()).length == 0); |
|
|
|
mapperElement.getImplementation()).length == 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@@ -204,15 +202,14 @@ public class UpToDate extends Task implements Condition { |
|
|
|
while (upToDate && e.hasMoreElements()) { |
|
|
|
FileSet fs = (FileSet) e.nextElement(); |
|
|
|
DirectoryScanner ds = fs.getDirectoryScanner(getProject()); |
|
|
|
upToDate = upToDate && scanDir(fs.getDir(getProject()), |
|
|
|
upToDate = scanDir(fs.getDir(getProject()), |
|
|
|
ds.getIncludedFiles()); |
|
|
|
} |
|
|
|
|
|
|
|
if (upToDate) { |
|
|
|
Resource[] r = sourceResources.listResources(); |
|
|
|
upToDate = upToDate |
|
|
|
&& (ResourceUtils.selectOutOfDateSources( |
|
|
|
this, r, getMapper(), getProject()).length == 0); |
|
|
|
upToDate = ResourceUtils.selectOutOfDateSources( |
|
|
|
this, r, getMapper(), getProject()).length == 0; |
|
|
|
} |
|
|
|
|
|
|
|
return upToDate; |
|
|
|