Revision: 17795
http://sourceforge.net/p/gate/code/17795
Author: ian_roberts
Date: 2014-04-10 12:00:46 +0000 (Thu, 10 Apr 2014)
Log Message:
-----------
When creating a MimirIndex from an IndexConfig object (e.g. a new local index
in mimir-web) save the config to disk immediately.
Modified Paths:
--------------
mimir/trunk/mimir-core/src/gate/mimir/MimirIndex.java
Modified: mimir/trunk/mimir-core/src/gate/mimir/MimirIndex.java
===================================================================
--- mimir/trunk/mimir-core/src/gate/mimir/MimirIndex.java 2014-04-10
09:37:50 UTC (rev 17794)
+++ mimir/trunk/mimir-core/src/gate/mimir/MimirIndex.java 2014-04-10
12:00:46 UTC (rev 17795)
@@ -469,6 +469,10 @@
this.indexDirectory = this.indexConfig.getIndexDirectory();
openIndex();
+
+ // save the config for the new index
+ IndexConfig.writeConfigToFile(indexConfig, new File(indexDirectory,
+ INDEX_CONFIG_FILENAME));
}
/**
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs