Class DeprecatedNativeImageOptions
- java.lang.Object
-
- org.graalvm.buildtools.gradle.internal.DeprecatedNativeImageOptions
-
- All Implemented Interfaces:
NativeImageOptions
,org.gradle.api.Named
@Deprecated public abstract class DeprecatedNativeImageOptions extends java.lang.Object implements NativeImageOptions
Deprecated.
-
-
Constructor Summary
Constructors Constructor Description DeprecatedNativeImageOptions(java.lang.String name, NativeImageOptions delegate, java.lang.String replacedWith, org.slf4j.Logger logger)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description NativeImageOptions
buildArgs(java.lang.Iterable<?> buildArgs)
Deprecated.Adds arguments for the native-image invocation.NativeImageOptions
buildArgs(java.lang.Object... buildArgs)
Deprecated.Adds arguments for the native-image invocation.NativeImageOptions
classpath(java.lang.Object... paths)
Deprecated.Adds elements to the classpath for the native-image building.AgentConfiguration
getAgent()
Deprecated.Returns the GraalVM agent configuration.org.gradle.api.provider.ListProperty<java.lang.String>
getBuildArgs()
Deprecated.Returns the arguments for the native-image invocation.org.gradle.api.file.ConfigurableFileCollection
getClasspath()
Deprecated.Returns the classpath for the native-image building.org.gradle.api.file.ConfigurableFileCollection
getConfigurationFileDirectories()
Deprecated.Returns the list of configuration file directories (e.g resource-config.json, ...) which need to be passed to native-image.org.gradle.api.provider.Property<java.lang.Boolean>
getDebug()
Deprecated.Gets the value which toggles native-image debug symbol output.org.gradle.api.provider.Property<java.lang.Boolean>
getFallback()
Deprecated.org.gradle.api.provider.Property<java.lang.String>
getImageName()
Deprecated.Gets the name of the native executable to be generated.org.gradle.api.provider.Property<org.gradle.jvm.toolchain.JavaLauncher>
getJavaLauncher()
Deprecated.Returns the toolchain used to invoke native-image.org.gradle.api.provider.ListProperty<java.lang.String>
getJvmArgs()
Deprecated.Returns the extra arguments to use when launching the JVM for the native-image building process.org.gradle.api.provider.Property<java.lang.String>
getMainClass()
Deprecated.Returns the fully qualified name of the Main class to be executed.java.lang.String
getName()
Deprecated.NativeResourcesOptions
getResources()
Deprecated.org.gradle.api.provider.ListProperty<java.lang.String>
getRuntimeArgs()
Deprecated.Returns the arguments to use when launching the built image.org.gradle.api.provider.Property<java.lang.Boolean>
getSharedLibrary()
Deprecated.Gets the value which determines if shared library is being built.org.gradle.api.provider.MapProperty<java.lang.String,java.lang.Object>
getSystemProperties()
Deprecated.Returns the system properties which will be used by the native-image builder process.org.gradle.api.provider.Property<java.lang.Boolean>
getVerbose()
Deprecated.Gets the value which toggles native-image verbose output.NativeImageOptions
jvmArgs(java.lang.Iterable<?> arguments)
Deprecated.Adds some arguments to use when launching the JVM for the native-image building process.NativeImageOptions
jvmArgs(java.lang.Object... arguments)
Deprecated.Adds some arguments to use when launching the JVM for the native-image building process.void
resources(org.gradle.api.Action<? super NativeResourcesOptions> spec)
Deprecated.NativeImageOptions
runtimeArgs(java.lang.Iterable<?> arguments)
Deprecated.Adds some arguments to use when launching the built image.NativeImageOptions
runtimeArgs(java.lang.Object... arguments)
Deprecated.Adds some arguments to use when launching the built image.NativeImageOptions
systemProperties(java.util.Map<java.lang.String,?> properties)
Deprecated.Adds some system properties to be used by the native-image builder process.NativeImageOptions
systemProperty(java.lang.String name, java.lang.Object value)
Deprecated.Adds a system property to be used by the native-image builder process.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.graalvm.buildtools.gradle.dsl.NativeImageOptions
agent, getUseFatJar
-
-
-
-
Constructor Detail
-
DeprecatedNativeImageOptions
@Inject public DeprecatedNativeImageOptions(java.lang.String name, NativeImageOptions delegate, java.lang.String replacedWith, org.slf4j.Logger logger)
Deprecated.
-
-
Method Detail
-
getName
@Internal public java.lang.String getName()
Deprecated.- Specified by:
getName
in interfaceorg.gradle.api.Named
- Specified by:
getName
in interfaceNativeImageOptions
-
getImageName
@Input public org.gradle.api.provider.Property<java.lang.String> getImageName()
Deprecated.Description copied from interface:NativeImageOptions
Gets the name of the native executable to be generated.- Specified by:
getImageName
in interfaceNativeImageOptions
- Returns:
- The image name property.
-
getMainClass
@Optional @Input public org.gradle.api.provider.Property<java.lang.String> getMainClass()
Deprecated.Description copied from interface:NativeImageOptions
Returns the fully qualified name of the Main class to be executed.This does not need to be set if using an Executable Jar with a
Main-Class
attribute.- Specified by:
getMainClass
in interfaceNativeImageOptions
- Returns:
- mainClass The main class.
-
getBuildArgs
@Input public org.gradle.api.provider.ListProperty<java.lang.String> getBuildArgs()
Deprecated.Description copied from interface:NativeImageOptions
Returns the arguments for the native-image invocation.- Specified by:
getBuildArgs
in interfaceNativeImageOptions
- Returns:
- Arguments for the native-image invocation.
-
getSystemProperties
@Input public org.gradle.api.provider.MapProperty<java.lang.String,java.lang.Object> getSystemProperties()
Deprecated.Description copied from interface:NativeImageOptions
Returns the system properties which will be used by the native-image builder process.- Specified by:
getSystemProperties
in interfaceNativeImageOptions
- Returns:
- The system properties. Returns an empty map when there are no system properties.
-
getClasspath
@Classpath @InputFiles public org.gradle.api.file.ConfigurableFileCollection getClasspath()
Deprecated.Description copied from interface:NativeImageOptions
Returns the classpath for the native-image building.- Specified by:
getClasspath
in interfaceNativeImageOptions
- Returns:
- classpath The classpath for the native-image building.
-
getJvmArgs
@Input public org.gradle.api.provider.ListProperty<java.lang.String> getJvmArgs()
Deprecated.Description copied from interface:NativeImageOptions
Returns the extra arguments to use when launching the JVM for the native-image building process. Does not include system properties and the minimum/maximum heap size.- Specified by:
getJvmArgs
in interfaceNativeImageOptions
- Returns:
- The arguments. Returns an empty list if there are no arguments.
-
getRuntimeArgs
@Input public org.gradle.api.provider.ListProperty<java.lang.String> getRuntimeArgs()
Deprecated.Description copied from interface:NativeImageOptions
Returns the arguments to use when launching the built image.- Specified by:
getRuntimeArgs
in interfaceNativeImageOptions
- Returns:
- The arguments. Returns an empty list if there are no arguments.
-
getDebug
@Input public org.gradle.api.provider.Property<java.lang.Boolean> getDebug()
Deprecated.Description copied from interface:NativeImageOptions
Gets the value which toggles native-image debug symbol output.- Specified by:
getDebug
in interfaceNativeImageOptions
- Returns:
- Is debug enabled
-
getFallback
@Input public org.gradle.api.provider.Property<java.lang.Boolean> getFallback()
Deprecated.- Specified by:
getFallback
in interfaceNativeImageOptions
- Returns:
- Whether to enable fallbacks (defaults to false).
-
getVerbose
@Input public org.gradle.api.provider.Property<java.lang.Boolean> getVerbose()
Deprecated.Description copied from interface:NativeImageOptions
Gets the value which toggles native-image verbose output.- Specified by:
getVerbose
in interfaceNativeImageOptions
- Returns:
- Is verbose output
-
getAgent
public AgentConfiguration getAgent()
Deprecated.Description copied from interface:NativeImageOptions
Returns the GraalVM agent configuration.- Specified by:
getAgent
in interfaceNativeImageOptions
- Returns:
- the configuration.
-
getSharedLibrary
@Input public org.gradle.api.provider.Property<java.lang.Boolean> getSharedLibrary()
Deprecated.Description copied from interface:NativeImageOptions
Gets the value which determines if shared library is being built.- Specified by:
getSharedLibrary
in interfaceNativeImageOptions
- Returns:
- The value which determines if shared library is being built.
-
getJavaLauncher
public org.gradle.api.provider.Property<org.gradle.jvm.toolchain.JavaLauncher> getJavaLauncher()
Deprecated.Description copied from interface:NativeImageOptions
Returns the toolchain used to invoke native-image. Currently pointing to a Java launcher due to Gradle limitations.- Specified by:
getJavaLauncher
in interfaceNativeImageOptions
-
getConfigurationFileDirectories
@InputFiles public org.gradle.api.file.ConfigurableFileCollection getConfigurationFileDirectories()
Deprecated.Description copied from interface:NativeImageOptions
Returns the list of configuration file directories (e.g resource-config.json, ...) which need to be passed to native-image.- Specified by:
getConfigurationFileDirectories
in interfaceNativeImageOptions
- Returns:
- a collection of directories
-
getResources
public NativeResourcesOptions getResources()
Deprecated.- Specified by:
getResources
in interfaceNativeImageOptions
-
resources
public void resources(org.gradle.api.Action<? super NativeResourcesOptions> spec)
Deprecated.- Specified by:
resources
in interfaceNativeImageOptions
-
buildArgs
public NativeImageOptions buildArgs(java.lang.Object... buildArgs)
Deprecated.Description copied from interface:NativeImageOptions
Adds arguments for the native-image invocation.- Specified by:
buildArgs
in interfaceNativeImageOptions
- Parameters:
buildArgs
- Arguments for the native-image invocation.- Returns:
- this
-
buildArgs
public NativeImageOptions buildArgs(java.lang.Iterable<?> buildArgs)
Deprecated.Description copied from interface:NativeImageOptions
Adds arguments for the native-image invocation.- Specified by:
buildArgs
in interfaceNativeImageOptions
- Parameters:
buildArgs
- Arguments for the native-image invocation.- Returns:
- this
-
systemProperties
public NativeImageOptions systemProperties(java.util.Map<java.lang.String,?> properties)
Deprecated.Description copied from interface:NativeImageOptions
Adds some system properties to be used by the native-image builder process.- Specified by:
systemProperties
in interfaceNativeImageOptions
- Parameters:
properties
- The system properties. Must not be null.- Returns:
- this
-
systemProperty
public NativeImageOptions systemProperty(java.lang.String name, java.lang.Object value)
Deprecated.Description copied from interface:NativeImageOptions
Adds a system property to be used by the native-image builder process.- Specified by:
systemProperty
in interfaceNativeImageOptions
- Parameters:
name
- The name of the propertyvalue
- The value for the property. May be null.- Returns:
- this
-
classpath
public NativeImageOptions classpath(java.lang.Object... paths)
Deprecated.Description copied from interface:NativeImageOptions
Adds elements to the classpath for the native-image building.- Specified by:
classpath
in interfaceNativeImageOptions
- Parameters:
paths
- The classpath elements.- Returns:
- this
-
jvmArgs
public NativeImageOptions jvmArgs(java.lang.Object... arguments)
Deprecated.Description copied from interface:NativeImageOptions
Adds some arguments to use when launching the JVM for the native-image building process.- Specified by:
jvmArgs
in interfaceNativeImageOptions
- Parameters:
arguments
- The arguments.- Returns:
- this
-
jvmArgs
public NativeImageOptions jvmArgs(java.lang.Iterable<?> arguments)
Deprecated.Description copied from interface:NativeImageOptions
Adds some arguments to use when launching the JVM for the native-image building process.- Specified by:
jvmArgs
in interfaceNativeImageOptions
- Parameters:
arguments
- The arguments. Must not be null.- Returns:
- this
-
runtimeArgs
public NativeImageOptions runtimeArgs(java.lang.Object... arguments)
Deprecated.Description copied from interface:NativeImageOptions
Adds some arguments to use when launching the built image.- Specified by:
runtimeArgs
in interfaceNativeImageOptions
- Parameters:
arguments
- The arguments.- Returns:
- this
-
runtimeArgs
public NativeImageOptions runtimeArgs(java.lang.Iterable<?> arguments)
Deprecated.Description copied from interface:NativeImageOptions
Adds some arguments to use when launching the built image.- Specified by:
runtimeArgs
in interfaceNativeImageOptions
- Parameters:
arguments
- The arguments. Must not be null.- Returns:
- this
-
-