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: tobyr@google.com

git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@9987 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/dev/core/src/com/google/gwt/dev/javac/UnitCacheFactory.java b/dev/core/src/com/google/gwt/dev/javac/UnitCacheFactory.java
index 8083790..1708de3 100644
--- a/dev/core/src/com/google/gwt/dev/javac/UnitCacheFactory.java
+++ b/dev/core/src/com/google/gwt/dev/javac/UnitCacheFactory.java
@@ -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;
 
   /**