Skip to content

Commit

Permalink
problème json réglé, packaging mac ok
Browse files Browse the repository at this point in the history
  • Loading branch information
germainsip committed Jul 17, 2020
1 parent 87fec64 commit 89d60c8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/org/gerblog/tools/Exempliser.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ public Exempliser() {

//FileReader reader = new FileReader(file);
try {
File file = new File(getClass().getResource("/org/gerblog/libexemple/liste_exemples.json").getPath());
FileReader fileReader = new FileReader(file);
// File file = new File(getClass().getResource("/org/gerblog/libexemple/liste_exemples.json").getPath());
InputStream stream = getClass().getResourceAsStream("/org/gerblog/libexemple/liste_exemples.json");
// FileReader fileReader = new FileReader(file);

ObjectMapper mapper = new ObjectMapper();
this.exTab = mapper.readValue(file,Exemple[].class);
this.exTab = mapper.readValue(stream,Exemple[].class);
//BufferedReader br = new BufferedReader(fileReader);

// String st;
Expand Down

0 comments on commit 89d60c8

Please sign in to comment.