Allow empty classpath for layer-create builds by jormundur00 · Pull Request #895 · graalvm/native-build-tools (original) (raw)

Conversation

@jormundur00

Fixes #892

Summary

Testing

Note: :native-maven-plugin:checkstyleMain currently fails on pre-existing unused imports in NativeTestMojo.java, unrelated to this change.

@jormundur00

Zeavee

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thank you!

protected static final String NATIVE_IMAGE_PROPERTIES_FILENAME = "native-image.properties";
protected static final String NATIVE_IMAGE_DRY_RUN = "nativeDryRun";
private static final Pattern LAYER_CREATE_ARG = Pattern.compile(
Pattern.quote(NativeImageFlags.LAYER_CREATE) + "(@[^=]*)?=.+");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the future (when layers will stop being experimental), we will also allow --layer-create. We don't have to support it now as I don't really know when we will remove the experimental part for layers, but since this is silent, it might be hard to remember.

vjovanov

mergify Bot added a commit to robfrank/linklift that referenced this pull request

Jun 4, 2026

@mergify

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

Labels