From ca05132021e8d2163965362dccdbbdbe4eae7606 Mon Sep 17 00:00:00 2001 From: Nemanja Mikic Date: Tue, 2 Apr 2024 12:41:46 +0200 Subject: [PATCH] code review fixes --- .../java/org/graalvm/buildtools/maven/WriteArgsFileMojo.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/native-maven-plugin/src/main/java/org/graalvm/buildtools/maven/WriteArgsFileMojo.java b/native-maven-plugin/src/main/java/org/graalvm/buildtools/maven/WriteArgsFileMojo.java index 8efac1af2..15e79f5d5 100644 --- a/native-maven-plugin/src/main/java/org/graalvm/buildtools/maven/WriteArgsFileMojo.java +++ b/native-maven-plugin/src/main/java/org/graalvm/buildtools/maven/WriteArgsFileMojo.java @@ -72,7 +72,7 @@ public class WriteArgsFileMojo extends NativeCompileNoForkMojo { public void execute() throws MojoExecutionException { List args = getBuildArgs(); - getLog().info("Cleaning old native image build args"); + getLog().debug("Cleaning old native image build args"); try (Stream listStream = Files.list(outputDirectory.toPath())) { listStream.map(path -> path.getFileName().toString()) @@ -86,7 +86,7 @@ public void execute() throws MojoExecutionException { } }); } catch (IOException e) { - throw new RuntimeException(e); + throw new MojoExecutionException(e); } List conversionResult = NativeImageUtils.convertToArgsFile(args, outputDirectory.toPath());