Revision: 15933
          http://gate.svn.sourceforge.net/gate/?rev=15933&view=rev
Author:   valyt
Date:     2012-07-13 11:34:08 +0000 (Fri, 13 Jul 2012)
Log Message:
-----------
Make temp-index persistence conditional on a system property (defaults to 
false, i.e. do-not-keep).

Modified Paths:
--------------
    mimir/trunk/mimir-test/src/gate/mimir/test/QueryTests.java

Modified: mimir/trunk/mimir-test/src/gate/mimir/test/QueryTests.java
===================================================================
--- mimir/trunk/mimir-test/src/gate/mimir/test/QueryTests.java  2012-07-13 
11:10:40 UTC (rev 15932)
+++ mimir/trunk/mimir-test/src/gate/mimir/test/QueryTests.java  2012-07-13 
11:34:08 UTC (rev 15933)
@@ -128,10 +128,14 @@
    */
   @AfterClass
   public static void oneTimeTearDown() {
-    for(File indexDir : indexDirs) {
-      // recursively delete index dir
-      if(!TestUtils.deleteDir(indexDir)) {
-        System.err.println("Could not delete index directory " + indexDir);
+    boolean keepIndex = Boolean.parseBoolean(
+      System.getProperty("keepTestIndex", "false"));
+    if(!keepIndex) {
+      for(File indexDir : indexDirs) {
+        // recursively delete index dir
+        if(!TestUtils.deleteDir(indexDir)) {
+          System.err.println("Could not delete index directory " + indexDir);
+        }      
       }      
     }
   }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to