From b803b9ce751c95853c9d791b1fc6e3b59470e262 Mon Sep 17 00:00:00 2001 From: Philip Helger Date: Tue, 9 Jul 2024 19:52:08 +0200 Subject: [PATCH] Java 11 --- .github/workflows/maven.yml | 2 +- .../src/main/java/org/mustangproject/commandline/Main.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index adcbf92af..562b5c182 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/setup-java@v3 # the log states the default ~/.m2/toolchains.xml is being created pointing to the JDK with: distribution: 'adopt' # for latest JDKs use temurin https://blog.adoptopenjdk.net/2021/08/goodbye-adoptopenjdk-hello-adoptium/ - java-version: '8' + java-version: '11' cache: 'maven' #cache/restore any dependencies to improve the workflow execution time - name: Build with Maven run: mvn -B package --file pom.xml \ No newline at end of file diff --git a/Mustang-CLI/src/main/java/org/mustangproject/commandline/Main.java b/Mustang-CLI/src/main/java/org/mustangproject/commandline/Main.java index a91fbe65c..4f410b83c 100755 --- a/Mustang-CLI/src/main/java/org/mustangproject/commandline/Main.java +++ b/Mustang-CLI/src/main/java/org/mustangproject/commandline/Main.java @@ -521,8 +521,8 @@ private static void performConvert(String pdfName, String outName) throws IOExce // All params are good! continue... try (ZUGFeRDExporterFromA1 ze = new ZUGFeRDExporterFromA1()) { ze.convertOnly().load(pdfName); - ze.export(outName); - System.out.println("Written to " + outName); + ze.export(outName); + System.out.println("Written to " + outName); } }