Skip to content

Commit

Permalink
Change error message when mergerExecutable does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
dnestoro committed Apr 10, 2024
1 parent dab33dd commit 0e0cf7a
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -71,11 +71,11 @@ public File getMergerExecutable() throws MojoExecutionException {
private void initializeMergerExecutable() throws MojoExecutionException {
Path nativeImage = NativeImageConfigurationUtils.getNativeImage(logger);
File nativeImageExecutable = nativeImage.toAbsolutePath().toFile();
String configureFileName = nativeImageConfigureFileName();
File mergerExecutable = new File(nativeImageExecutable.getParentFile(), configureFileName);
String nativeImageConfigureFileName = nativeImageConfigureFileName();
File mergerExecutable = new File(nativeImageExecutable.getParentFile(), nativeImageConfigureFileName);
if (!mergerExecutable.exists()) {
throw new MojoExecutionException("'" + configureFileName + "' tool was not found in your " + nativeImage + "." +
"This probably means that the JDK at '" + nativeImage + "' is not a GraalVM distribution."
throw new MojoExecutionException("'" + nativeImageConfigureFileName + "' tool was not found in the GraalVM JDK at '" + nativeImageExecutable.getParentFile().getParentFile() + "'." +
"This probably means that you are using a GraalVM distribution that is not fully supported by the Native Build Tools."
);
}

Expand Down

0 comments on commit 0e0cf7a

Please sign in to comment.