Revision: 9987
Author: [email protected]
Date: Wed Apr 13 10:08:39 2011
Log: Allows the gwt.persistentunitcache property to accept a boolean
argument (case insenstivive "true") to turn on the cache. Any value
other than a blank turns the cache off.
Review at http://gwt-code-reviews.appspot.com/1415802
Review by: [email protected]
http://code.google.com/p/google-web-toolkit/source/detail?r=9987
Modified:
/trunk/dev/core/src/com/google/gwt/dev/javac/UnitCacheFactory.java
=======================================
--- /trunk/dev/core/src/com/google/gwt/dev/javac/UnitCacheFactory.java Mon
Mar 28 11:28:56 2011
+++ /trunk/dev/core/src/com/google/gwt/dev/javac/UnitCacheFactory.java Wed
Apr 13 10:08:39 2011
@@ -28,8 +28,10 @@
/**
* The API must be enabled explicitly for persistent caching to be live.
*/
- private static final boolean usePersistent =
System.getProperties().containsKey(
- "gwt.persistentunitcache");
+ private static final String configPropertyValue =
System.getProperty("gwt.persistentunitcache",
+ "false");
+ private static final boolean usePersistent =
configPropertyValue.length() == 0
+ || Boolean.parseBoolean(configPropertyValue);
private static UnitCache instance = null;
/**
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors