This is an automated email from the ASF dual-hosted git repository.
tallison pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tika.git
The following commit(s) were added to refs/heads/master by this push:
new 87e483a Better to fix the .mv.db than to complain to the user.
87e483a is described below
commit 87e483a7643db45613e6bcc3d9517026db78a097
Author: tballison <[email protected]>
AuthorDate: Thu Aug 31 11:58:27 2017 -0400
Better to fix the .mv.db than to complain to the user.
---
.../java/org/apache/tika/eval/reports/ResultsReporter.java | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git
a/tika-eval/src/main/java/org/apache/tika/eval/reports/ResultsReporter.java
b/tika-eval/src/main/java/org/apache/tika/eval/reports/ResultsReporter.java
index 8f36d8b..a9e541a 100644
--- a/tika-eval/src/main/java/org/apache/tika/eval/reports/ResultsReporter.java
+++ b/tika-eval/src/main/java/org/apache/tika/eval/reports/ResultsReporter.java
@@ -224,10 +224,14 @@ public class ResultsReporter {
}
JDBCUtil dbUtil = null;
if (commandLine.hasOption("db")) {
- Path db = Paths.get(commandLine.getOptionValue("db"));
+ String dbString = commandLine.getOptionValue("db");
+ if (dbString.endsWith(".mv.db")) {
+ dbString = dbString.substring(0, dbString.length()-6);
+ LOG.debug("trimming .mv.db from db name");
+ }
+ Path db = Paths.get(dbString);
if (!H2Util.databaseExists(db)) {
- throw new RuntimeException("I'm sorry, but I couldn't find
this h2 database: "
- + db+ "\nMake sure not to include the .mv.db at the
end.");
+ throw new RuntimeException("I'm sorry, but I couldn't find
this h2 database: " + db);
}
dbUtil = new H2Util(db);
} else if (commandLine.hasOption("jdbc")) {
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].