diff --git a/build.gradle b/build.gradle index 88b375f23a5..e4bdbf6da35 100644 --- a/build.gradle +++ b/build.gradle @@ -27,7 +27,7 @@ plugins { id 'idea' - id 'org.openrewrite.rewrite' version '6.3.2' + id 'org.openrewrite.rewrite' version '6.3.3' } // Enable following for debugging diff --git a/src/main/java/org/jabref/cli/JournalListMvGenerator.java b/src/main/java/org/jabref/cli/JournalListMvGenerator.java index 154696b3a22..35f25a6edbe 100644 --- a/src/main/java/org/jabref/cli/JournalListMvGenerator.java +++ b/src/main/java/org/jabref/cli/JournalListMvGenerator.java @@ -19,6 +19,8 @@ public class JournalListMvGenerator { public static void main(String[] args) throws IOException { + boolean verbose = (args.length == 1) && ("--verbose".equals(args[0])); + Path abbreviationsDirectory = Path.of("buildres", "abbrv.jabref.org", "journals"); if (!Files.exists(abbreviationsDirectory)) { System.out.println("Path " + abbreviationsDirectory.toAbsolutePath() + " does not exist"); @@ -66,7 +68,9 @@ public static void main(String[] args) throws IOException { Abbreviation::getName, abbreviation -> abbreviation, (abbreviation1, abbreviation2) -> { - System.out.println("Double entry " + abbreviation1.getName()); + if (verbose) { + System.out.println("Double entry " + abbreviation1.getName()); + } return abbreviation2; })); fullToAbbreviation.putAll(abbreviationMap);