You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by rm...@apache.org on 2014/05/28 19:16:31 UTC

svn commit: r1598074 - in /commons/proper/jcs/trunk: commons-jcs-jcache/src/main/java/org/apache/commons/jcs/jcache/JCSCache.java jcache-fast.sh

Author: rmannibucau
Date: Wed May 28 17:16:31 2014
New Revision: 1598074

URL: http://svn.apache.org/r1598074
Log:
adding jcache-fast.sh to test quickly jcache build and calling pending tasks before shutdown on JCache

Added:
    commons/proper/jcs/trunk/jcache-fast.sh   (with props)
Modified:
    commons/proper/jcs/trunk/commons-jcs-jcache/src/main/java/org/apache/commons/jcs/jcache/JCSCache.java

Modified: commons/proper/jcs/trunk/commons-jcs-jcache/src/main/java/org/apache/commons/jcs/jcache/JCSCache.java
URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/commons-jcs-jcache/src/main/java/org/apache/commons/jcs/jcache/JCSCache.java?rev=1598074&r1=1598073&r2=1598074&view=diff
==============================================================================
--- commons/proper/jcs/trunk/commons-jcs-jcache/src/main/java/org/apache/commons/jcs/jcache/JCSCache.java (original)
+++ commons/proper/jcs/trunk/commons-jcs-jcache/src/main/java/org/apache/commons/jcs/jcache/JCSCache.java Wed May 28 17:16:31 2014
@@ -913,9 +913,12 @@ public class JCSCache<K, V> implements C
             return;
         }
 
+        for (final Runnable task : pool.shutdownNow()) {
+            task.run();
+        }
+
         manager.release(getName());
         closed = true;
-        pool.shutdownNow();
         close(loader);
         close(writer);
         close(expiryPolicy);

Added: commons/proper/jcs/trunk/jcache-fast.sh
URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/jcache-fast.sh?rev=1598074&view=auto
==============================================================================
--- commons/proper/jcs/trunk/jcache-fast.sh (added)
+++ commons/proper/jcs/trunk/jcache-fast.sh Wed May 28 17:16:31 2014
@@ -0,0 +1,8 @@
+#! /bin/bash
+
+cd commons-jcs-core && mvn clean install -Dmaven.test.skip=true && cd -
+cd commons-jcs-jcache && mvn clean install && cd -
+cd commons-jcs-openjpa && mvn clean install && cd -
+cd commons-jcs-extras && mvn clean install && cd -
+cd commons-jcs-tck-tests && mvn clean install -Djcache.tck && cd -
+

Propchange: commons/proper/jcs/trunk/jcache-fast.sh
------------------------------------------------------------------------------
    svn:executable = *