Implement up to date check for tile directories
This commit is contained in:
committed by
Michael Bayne
parent
b65ca9b144
commit
6ec4fb5c4f
@@ -84,9 +84,19 @@ public class BundleWriter
|
||||
{
|
||||
if (_jar != null) {
|
||||
return _target.lastModified() > newest;
|
||||
}
|
||||
} else {
|
||||
File []files = _target.listFiles();
|
||||
if (files == null) {
|
||||
return false;
|
||||
}
|
||||
for (File file : files) {
|
||||
if (file.lastModified() < newest) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Closes the writer.
|
||||
|
||||
Reference in New Issue
Block a user