Skip to content

v0.2.54..v0.2.55 changeset DeriveChangesetCommand.java

Garret Voltz edited this page Aug 14, 2020 · 1 revision
diff --git a/hoot-services/src/main/java/hoot/services/controllers/grail/DeriveChangesetCommand.java b/hoot-services/src/main/java/hoot/services/controllers/grail/DeriveChangesetCommand.java
index 5017557..883e5b6 100644
--- a/hoot-services/src/main/java/hoot/services/controllers/grail/DeriveChangesetCommand.java
+++ b/hoot-services/src/main/java/hoot/services/controllers/grail/DeriveChangesetCommand.java
@@ -26,6 +26,7 @@
  */
 package hoot.services.controllers.grail;
 
+import java.io.File;
 import java.util.HashMap;
 import java.util.LinkedList;
 import java.util.List;
@@ -55,8 +56,9 @@ class DeriveChangesetCommand extends GrailCommand {
         substitutionMap.put("OSC_FILE", params.getOutput());
         substitutionMap.put("HOOT_OPTIONS", hootOptions);
         substitutionMap.put("DEBUG_LEVEL", debugLevel);
+        substitutionMap.put("STATS_FILE", new File(params.getWorkDir(), "stats.json").getPath());
 
-        String command = "hoot changeset-derive --${DEBUG_LEVEL} -C DeriveChangeset.conf ${HOOT_OPTIONS} ${INPUT1} ${INPUT2} ${OSC_FILE} --stats";
+        String command = "hoot.bin changeset-derive --${DEBUG_LEVEL} -C DeriveChangeset.conf ${HOOT_OPTIONS} ${INPUT1} ${INPUT2} ${OSC_FILE} --stats ${STATS_FILE}";
 
         super.configureCommand(command, substitutionMap, caller);
     }
Clone this wiki locally