public interface NativeImageOptions
| Modifier and Type | Method and Description |
|---|---|
NativeImageOptions |
args(java.lang.Iterable<?> args)
Adds args for the main class to be executed.
|
NativeImageOptions |
args(java.lang.Object... args)
Adds args for the main class to be executed.
|
NativeImageOptions |
classpath(java.lang.Object... paths)
Adds elements to the classpath for executing the main class.
|
NativeImageOptions |
debug(boolean debug)
Builds a native image with debug symbols
|
NativeImageOptions |
enableServerBuild(boolean enabled)
Enables server build.
|
NativeImageOptions |
fallback(boolean fallback)
Sets whether to enable a fallback or not
|
org.gradle.api.file.FileCollection |
getClasspath()
Returns the classpath for executing the main class.
|
org.gradle.api.provider.Property<java.lang.String> |
getImageName()
Gets the name of the native executable to be generated.
|
org.gradle.api.provider.ListProperty<java.lang.String> |
getJvmArgs()
Returns the extra arguments to use to launch the JVM for the process.
|
org.gradle.api.provider.Property<java.lang.String> |
getMain()
Returns the fully qualified name of the Main class to be executed.
|
org.gradle.api.provider.MapProperty<java.lang.String,java.lang.Object> |
getSystemProperties()
Returns the system properties which will be used for the process.
|
org.gradle.api.provider.Property<java.lang.Boolean> |
isDebug() |
org.gradle.api.provider.Property<java.lang.Boolean> |
isFallback() |
org.gradle.api.provider.Property<java.lang.Boolean> |
isServerBuild() |
org.gradle.api.provider.Property<java.lang.Boolean> |
isVerbose() |
NativeImageOptions |
jvmArgs(java.lang.Iterable<?> arguments)
Adds some arguments to use to launch the JVM for the process.
|
NativeImageOptions |
jvmArgs(java.lang.Object... arguments)
Adds some arguments to use to launch the JVM for the process.
|
NativeImageOptions |
setArgs(java.lang.Iterable<?> args)
Sets the args for the main class to be executed.
|
NativeImageOptions |
setArgs(java.util.List<java.lang.String> args)
Sets the args for the main class to be executed.
|
NativeImageOptions |
setClasspath(org.gradle.api.file.FileCollection classpath)
Sets the classpath for executing the main class.
|
NativeImageOptions |
setImageName(java.lang.String name)
Sets the name of the native executable to be generated.
|
void |
setJvmArgs(java.lang.Iterable<?> arguments)
Sets the extra arguments to use to launch the JVM for the process.
|
void |
setJvmArgs(java.util.List<java.lang.String> arguments)
Sets the extra arguments to use to launch the JVM for the process.
|
NativeImageOptions |
setMain(java.lang.String main)
Sets the fully qualified name of the main class to be executed.
|
void |
setSystemProperties(java.util.Map<java.lang.String,?> properties)
Sets the system properties to use for the process.
|
NativeImageOptions |
systemProperties(java.util.Map<java.lang.String,?> properties)
Adds some system properties to use for the process.
|
NativeImageOptions |
systemProperty(java.lang.String name,
java.lang.Object value)
Adds a system property to use for the process.
|
NativeImageOptions |
verbose(boolean verbose)
Sets the native image build to be verbose
|
org.gradle.api.provider.Property<java.lang.Boolean> isFallback()
@Input org.gradle.api.provider.Property<java.lang.String> getImageName()
NativeImageOptions setImageName(@Nullable java.lang.String name)
name - The name.@Input org.gradle.api.provider.Property<java.lang.String> getMain()
This does not need to be set if using an Executable Jar with a Main-Class attribute.
NativeImageOptions setMain(@Nullable java.lang.String main)
main - the fully qualified name of the main class to be executed.NativeImageOptions args(java.lang.Object... args)
args - Args for the main class.NativeImageOptions args(java.lang.Iterable<?> args)
args - Args for the main class.NativeImageOptions setArgs(@Nullable java.util.List<java.lang.String> args)
args - Args for the main class.NativeImageOptions setArgs(@Nullable java.lang.Iterable<?> args)
args - Args for the main class.@Input org.gradle.api.provider.MapProperty<java.lang.String,java.lang.Object> getSystemProperties()
void setSystemProperties(java.util.Map<java.lang.String,?> properties)
properties - The system properties. Must not be null.NativeImageOptions systemProperties(java.util.Map<java.lang.String,?> properties)
properties - The system properties. Must not be null.NativeImageOptions systemProperty(java.lang.String name, java.lang.Object value)
name - The name of the propertyvalue - The value for the property. May be null.NativeImageOptions classpath(java.lang.Object... paths)
paths - classpath elements@Classpath org.gradle.api.file.FileCollection getClasspath()
NativeImageOptions setClasspath(org.gradle.api.file.FileCollection classpath)
classpath - the classpath@Input org.gradle.api.provider.ListProperty<java.lang.String> getJvmArgs()
void setJvmArgs(@Nullable
java.util.List<java.lang.String> arguments)
arguments - The arguments. Must not be null.void setJvmArgs(@Nullable
java.lang.Iterable<?> arguments)
arguments - The arguments. Must not be null.NativeImageOptions jvmArgs(java.lang.Iterable<?> arguments)
arguments - The arguments. Must not be null.NativeImageOptions jvmArgs(java.lang.Object... arguments)
arguments - The arguments.NativeImageOptions verbose(boolean verbose)
NativeImageOptions enableServerBuild(boolean enabled)
NativeImageOptions debug(boolean debug)
NativeImageOptions fallback(boolean fallback)
@Input org.gradle.api.provider.Property<java.lang.Boolean> isDebug()
@Input org.gradle.api.provider.Property<java.lang.Boolean> isVerbose()
@Input org.gradle.api.provider.Property<java.lang.Boolean> isServerBuild()