@ConfigRoot(phase=BUILD_TIME) public class NativeConfig extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
NativeConfig.Debug |
static class |
NativeConfig.ResourcesConfig |
| Modifier and Type | Field and Description |
|---|---|
boolean |
addAllCharsets
If all character sets should be added to the native image.
|
Optional<List<String>> |
additionalBuildArgs
Additional arguments to pass to the build process
|
boolean |
autoServiceLoaderRegistration
If all META-INF/services entries should be automatically registered
|
String |
builderImage
The docker image to use to do the image build
|
boolean |
cleanupServer
If the native image server should be restarted
|
boolean |
containerBuild
If this build should be done using a container runtime.
|
Optional<String> |
containerRuntime
The container runtime (e.g.
|
Optional<List<String>> |
containerRuntimeOptions
Options to pass to the container runtime
|
NativeConfig.Debug |
debug
Debugging options.
|
boolean |
debugBuildProcess
If the native image build should wait for a debugger to be attached before running.
|
boolean |
dumpProxies
If the bytecode of all proxies should be dumped for inspection
|
boolean |
enableAllSecurityServices
If all security services should be added to the native image
|
boolean |
enableFallbackImages
If a JVM based 'fallback image' should be created if native image fails.
|
boolean |
enableHttpsUrlHandler
If the HTTPS url handler should be enabled, allowing you to do URL.openConnection() for HTTPS URLs
|
boolean |
enableHttpUrlHandler
If the HTTP url handler should be enabled, allowing you to do URL.openConnection() for HTTP URLs
|
boolean |
enableIsolates
If isolates should be enabled
|
boolean |
enableJni
Deprecated.
JNI is always enabled starting from GraalVM 19.3.1.
|
boolean |
enableReports
If the reports on call paths and included packages/classes/methods should be generated
|
boolean |
enableServer
If the native image server should be used.
|
boolean |
enableVmInspection
If the resulting image should allow VM introspection
|
boolean |
fullStackTraces
If full stack traces are enabled in the resulting image
|
Optional<String> |
graalvmHome
The location of the Graal distribution
|
File |
javaHome
The location of the JDK
|
Optional<String> |
nativeImageXmx
The maximum Java heap to be used during the native image generation
|
boolean |
publishDebugBuildProcessPort
If the debug port should be published when building with docker and debug-build-process is true
|
boolean |
reportErrorsAtRuntime
If errors should be reported at runtime.
|
boolean |
reportExceptionStackTraces
If exceptions should be reported with a full stack trace
|
NativeConfig.ResourcesConfig |
resources
Build time configuration options for resources inclusion in the native executable.
|
| Constructor and Description |
|---|
NativeConfig() |
@ConfigItem public Optional<List<String>> additionalBuildArgs
@ConfigItem(defaultValue="true") public boolean enableHttpUrlHandler
@ConfigItem public boolean enableHttpsUrlHandler
@ConfigItem public boolean enableAllSecurityServices
@Deprecated @ConfigItem(defaultValue="true") public boolean enableJni
@ConfigItem public boolean addAllCharsets
@ConfigItem(defaultValue="${GRAALVM_HOME:}") public Optional<String> graalvmHome
@ConfigItem(defaultValue="${java.home}") public File javaHome
@ConfigItem public Optional<String> nativeImageXmx
@ConfigItem public boolean debugBuildProcess
@ConfigItem(defaultValue="true") public boolean publishDebugBuildProcessPort
@ConfigItem public boolean cleanupServer
@ConfigItem(defaultValue="true") public boolean enableIsolates
@ConfigItem public boolean enableFallbackImages
@ConfigItem public boolean enableServer
@ConfigItem public boolean autoServiceLoaderRegistration
@ConfigItem public boolean dumpProxies
@ConfigItem public boolean containerBuild
@ConfigItem(defaultValue="quay.io/quarkus/ubi-quarkus-native-image:20.1.0-java11") public String builderImage
@ConfigItem public Optional<String> containerRuntime
@ConfigItem public Optional<List<String>> containerRuntimeOptions
@ConfigItem public boolean enableVmInspection
@ConfigItem(defaultValue="true") public boolean fullStackTraces
@ConfigItem public boolean enableReports
@ConfigItem(defaultValue="true") public boolean reportExceptionStackTraces
@ConfigItem public boolean reportErrorsAtRuntime
@ConfigItem public NativeConfig.ResourcesConfig resources
@ConfigItem public NativeConfig.Debug debug
Copyright © 2020 JBoss by Red Hat. All rights reserved.