Skip to content

Commit

Permalink
Fix version output
Browse files Browse the repository at this point in the history
  • Loading branch information
nck-mlcnv committed Oct 11, 2024
1 parent c9a14b9 commit b86d876
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ private static void outputVersion() throws IOException {
ClassLoader classloader = MainController.class.getClassLoader();
String properties = new String(Objects.requireNonNull(classloader.getResourceAsStream("version.properties")).readAllBytes());
String[] lines = properties.split("\\n");
String projectVersion = lines[0].split("=")[1];
String ontologyVersion = lines[1].split("=")[1];
System.out.println("IGUANA version: " + projectVersion + " (result ontology version: " + ontologyVersion + ")");
String projectVersion = lines[0].split("=")[1].trim();
String ontologyVersion = lines[1].split("=")[1].trim();
System.out.printf("IGUANA version: %s (result ontology version: %s)%n", projectVersion, ontologyVersion);
}

}

0 comments on commit b86d876

Please sign in to comment.