esoe 2 years ago
parent
commit
4375e7187f
  1. 3
      src/main/java/ru/molokoin/sourceListener/SourceListener.java
  2. BIN
      target/classes/ru/molokoin/sourceListener/SourceListener.class

3
src/main/java/ru/molokoin/sourceListener/SourceListener.java

@ -20,6 +20,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
public class SourceListener { public class SourceListener {
public Options opt; public Options opt;
public String optionsPath = "options-office.json";
public SourceListener(){ public SourceListener(){
try { try {
opt = readOptions(); opt = readOptions();
@ -44,7 +45,7 @@ public class SourceListener {
public Options readOptions() throws StreamReadException, DatabindException, IOException{ public Options readOptions() throws StreamReadException, DatabindException, IOException{
Options opt; Options opt;
ObjectMapper mapper = new ObjectMapper(); ObjectMapper mapper = new ObjectMapper();
opt = mapper.readValue(new File("options-office.json"), Options.class); opt = mapper.readValue(new File(optionsPath), Options.class);
return opt; return opt;
} }
public Options getOpt() { public Options getOpt() {

BIN
target/classes/ru/molokoin/sourceListener/SourceListener.class

Binary file not shown.
Loading…
Cancel
Save