Turned off caching in the packer as it's currently creating more problems than it solves.

This commit is contained in:
Martin Haye 2016-07-14 14:19:38 -07:00
parent df02ca2367
commit 95e4651123

View File

@ -1634,16 +1634,19 @@ class A2PackPartitions
def readCache() def readCache()
{ {
/* This isn't working reliably lately
File cacheFile = new File("build/world.cache") File cacheFile = new File("build/world.cache")
if (cacheFile.exists()) { if (cacheFile.exists()) {
ObjectInputStream inStream = new ObjectInputStream(new FileInputStream(cacheFile)); ObjectInputStream inStream = new ObjectInputStream(new FileInputStream(cacheFile));
cache = inStream.readObject(); cache = inStream.readObject();
inStream.close() inStream.close()
} }
*/
} }
def writeCache() def writeCache()
{ {
/* This isn't working reliably lately
File cacheFile = new File("build/world.cache") File cacheFile = new File("build/world.cache")
File newCacheFile = new File("build/world.cache.new") File newCacheFile = new File("build/world.cache.new")
ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(newCacheFile)); ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(newCacheFile));
@ -1651,6 +1654,7 @@ class A2PackPartitions
out.close() out.close()
cacheFile.delete() // needed on Windows cacheFile.delete() // needed on Windows
newCacheFile.renameTo(cacheFile) newCacheFile.renameTo(cacheFile)
*/
} }
def pack(xmlPath) def pack(xmlPath)