Implement up to date check for tile directories
This commit is contained in:
committed by
Michael Bayne
parent
b65ca9b144
commit
6ec4fb5c4f
@@ -84,8 +84,18 @@ public class BundleWriter
|
|||||||
{
|
{
|
||||||
if (_jar != null) {
|
if (_jar != null) {
|
||||||
return _target.lastModified() > newest;
|
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;
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user