|
From: <mar...@us...> - 2014-04-21 10:39:41
|
Revision: 17889
http://sourceforge.net/p/gate/code/17889
Author: markagreenwood
Date: 2014-04-21 10:39:34 +0000 (Mon, 21 Apr 2014)
Log Message:
-----------
applied path #47 so that the CorpusBenchmarkTool looks in the eval directory for the corpus_tool.properties file before looking in the main GATE folder so you could have multiple configs on the same machine without having to copy files around
Modified Paths:
--------------
gate/trunk/src/main/gate/util/CorpusBenchmarkTool.java
Modified: gate/trunk/src/main/gate/util/CorpusBenchmarkTool.java
===================================================================
--- gate/trunk/src/main/gate/util/CorpusBenchmarkTool.java 2014-04-21 09:58:53 UTC (rev 17888)
+++ gate/trunk/src/main/gate/util/CorpusBenchmarkTool.java 2014-04-21 10:39:34 UTC (rev 17889)
@@ -100,8 +100,10 @@
}
public void init() {
- //first read the corpus_tool.properties file
- File propFile = new File("corpus_tool.properties");
+ //first read the corpus_tool.properties file from the reference dir
+ File propFile = new File(getStartDirectory(),"corpus_tool.properties");
+ if (!propFile.exists())
+ propFile = new File("corpus_tool.properties");
Out.prln("Loading properties from " + propFile.getAbsolutePath());
if (propFile.exists()) {
try {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|