Skip to content

Commit c65d660

Browse files
committed
file overrides dir
1 parent a8c63bd commit c65d660

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

reconstruction/pp/src/main/java/org/jlab/service/postproc/PostprocEngine.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.jlab.service.postproc;
22

3+
import java.io.File;
34
import java.util.logging.Logger;
45
import org.jlab.analysis.postprocess.Processor;
56
import org.jlab.clas.reco.ReconstructionEngine;
@@ -29,8 +30,10 @@ public PostprocEngine() {
2930
public boolean init() {
3031
requireConstants(Processor.CCDB_TABLES);
3132
if (getEngineConfigString(CONF_PRELOAD_FILE) != null) {
32-
if (getEngineConfigString(CONF_PRELOAD_DIR) != null) {
33-
}
33+
if (getEngineConfigString(CONF_PRELOAD_DIR) != null)
34+
logger.warning("PostprocEngine:: Using preloadFile, ignoring preloadDir.");
35+
processor = new Processor(new File(getEngineConfigString(CONF_PRELOAD_FILE)),
36+
Boolean.parseBoolean(getEngineConfigString(CONF_RESTREAM_HELICITY,"false")));
3437
}
3538
if (getEngineConfigString(CONF_PRELOAD_DIR) != null) {
3639
processor = new Processor(

0 commit comments

Comments
 (0)