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

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

Binary file not shown.
Loading…
Cancel
Save