Reviewers: tobyr,
Description:
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.
Please review this at http://gwt-code-reviews.appspot.com/1415802/
Affected files:
M dev/core/src/com/google/gwt/dev/javac/UnitCacheFactory.java
Index: dev/core/src/com/google/gwt/dev/javac/UnitCacheFactory.java
===================================================================
--- dev/core/src/com/google/gwt/dev/javac/UnitCacheFactory.java (revision
9983)
+++ dev/core/src/com/google/gwt/dev/javac/UnitCacheFactory.java (working
copy)
@@ -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 CONFIG_PROPERTY_VALUE =
System.getProperty("gwt.persistentunitcache",
+ "false");
+ private static final boolean usePersistent =
CONFIG_PROPERTY_VALUE.length() == 0
+ || Boolean.parseBoolean(CONFIG_PROPERTY_VALUE);
private static UnitCache instance = null;
/**
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors