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 voidagent(org.gradle.api.Action<? super DeprecatedAgentOptions> spec)Deprecated.NativeImageOptionsbuildArgs(java.lang.Iterable<?> buildArgs)Deprecated.Adds arguments for the native-image invocation.NativeImageOptionsbuildArgs(java.lang.Object... buildArgs)Deprecated.Adds arguments for the native-image invocation.NativeImageOptionsclasspath(java.lang.Object... paths)Deprecated.Adds elements to the classpath for the native-image building.DeprecatedAgentOptionsgetAgent()Deprecated.org.gradle.api.provider.ListProperty<java.lang.String>getBuildArgs()Deprecated.Returns the arguments for the native-image invocation.org.gradle.api.file.ConfigurableFileCollectiongetClasspath()Deprecated.Returns the classpath for the native-image building.org.gradle.api.file.ConfigurableFileCollectiongetConfigurationFileDirectories()Deprecated.Returns the list of configuration file directories (e.g.org.gradle.api.provider.Property<java.lang.Boolean>getDebug()Deprecated.Gets the value which toggles native-image debug symbol output.org.gradle.api.provider.MapProperty<java.lang.String,java.lang.Object>getEnvironmentVariables()Deprecated.Returns the environment variables which will be used by the native-image builder process.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.StringgetName()Deprecated.NativeResourcesOptionsgetResources()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.NativeImageOptionsjvmArgs(java.lang.Iterable<?> arguments)Deprecated.Adds some arguments to use when launching the JVM for the native-image building process.NativeImageOptionsjvmArgs(java.lang.Object... arguments)Deprecated.Adds some arguments to use when launching the JVM for the native-image building process.voidresources(org.gradle.api.Action<? super NativeResourcesOptions> spec)Deprecated.NativeImageOptionsruntimeArgs(java.lang.Iterable<?> arguments)Deprecated.Adds some arguments to use when launching the built image.NativeImageOptionsruntimeArgs(java.lang.Object... arguments)Deprecated.Adds some arguments to use when launching the built image.NativeImageOptionssystemProperties(java.util.Map<java.lang.String,?> properties)Deprecated.Adds some system properties to be used by the native-image builder process.NativeImageOptionssystemProperty(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
getExcludeConfig, getExcludeConfigArgs, getQuickBuild, getRequiredVersion, getRichOutput, 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:
getNamein interfaceorg.gradle.api.Named- Specified by:
getNamein interfaceNativeImageOptions
-
getImageName
@Input public org.gradle.api.provider.Property<java.lang.String> getImageName()
Deprecated.Description copied from interface:NativeImageOptionsGets the name of the native executable to be generated.- Specified by:
getImageNamein interfaceNativeImageOptions- Returns:
- The image name property.
-
getMainClass
@Optional @Input public org.gradle.api.provider.Property<java.lang.String> getMainClass()
Deprecated.Description copied from interface:NativeImageOptionsReturns 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-Classattribute.- Specified by:
getMainClassin interfaceNativeImageOptions- Returns:
- mainClass The main class.
-
getBuildArgs
@Input public org.gradle.api.provider.ListProperty<java.lang.String> getBuildArgs()
Deprecated.Description copied from interface:NativeImageOptionsReturns the arguments for the native-image invocation.- Specified by:
getBuildArgsin 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:NativeImageOptionsReturns the system properties which will be used by the native-image builder process.- Specified by:
getSystemPropertiesin interfaceNativeImageOptions- Returns:
- The system properties. Returns an empty map when there are no system properties.
-
getEnvironmentVariables
public org.gradle.api.provider.MapProperty<java.lang.String,java.lang.Object> getEnvironmentVariables()
Deprecated.Description copied from interface:NativeImageOptionsReturns the environment variables which will be used by the native-image builder process.- Specified by:
getEnvironmentVariablesin interfaceNativeImageOptions- Returns:
- the environment variables. Returns an empty map when there are no environment variables.
-
getClasspath
@Classpath @InputFiles public org.gradle.api.file.ConfigurableFileCollection getClasspath()
Deprecated.Description copied from interface:NativeImageOptionsReturns the classpath for the native-image building.- Specified by:
getClasspathin 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:NativeImageOptionsReturns 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:
getJvmArgsin 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:NativeImageOptionsReturns the arguments to use when launching the built image.- Specified by:
getRuntimeArgsin 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:NativeImageOptionsGets the value which toggles native-image debug symbol output.- Specified by:
getDebugin interfaceNativeImageOptions- Returns:
- Is debug enabled
-
getFallback
@Input public org.gradle.api.provider.Property<java.lang.Boolean> getFallback()
Deprecated.- Specified by:
getFallbackin 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:NativeImageOptionsGets the value which toggles native-image verbose output.- Specified by:
getVerbosein interfaceNativeImageOptions- Returns:
- Is verbose output
-
getSharedLibrary
@Input public org.gradle.api.provider.Property<java.lang.Boolean> getSharedLibrary()
Deprecated.Description copied from interface:NativeImageOptionsGets the value which determines if shared library is being built.- Specified by:
getSharedLibraryin 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:NativeImageOptionsReturns the toolchain used to invoke native-image. Currently pointing to a Java launcher due to Gradle limitations.- Specified by:
getJavaLauncherin interfaceNativeImageOptions- Returns:
- the detected java launcher
-
getConfigurationFileDirectories
@InputFiles public org.gradle.api.file.ConfigurableFileCollection getConfigurationFileDirectories()
Deprecated.Description copied from interface:NativeImageOptionsReturns the list of configuration file directories (e.g. resource-config.json, ...) which need to be passed to native-image.- Specified by:
getConfigurationFileDirectoriesin interfaceNativeImageOptions- Returns:
- a collection of directories
-
getResources
public NativeResourcesOptions getResources()
Deprecated.- Specified by:
getResourcesin interfaceNativeImageOptions
-
resources
public void resources(org.gradle.api.Action<? super NativeResourcesOptions> spec)
Deprecated.- Specified by:
resourcesin interfaceNativeImageOptions
-
buildArgs
public NativeImageOptions buildArgs(java.lang.Object... buildArgs)
Deprecated.Description copied from interface:NativeImageOptionsAdds arguments for the native-image invocation.- Specified by:
buildArgsin interfaceNativeImageOptions- Parameters:
buildArgs- Arguments for the native-image invocation.- Returns:
- this
-
buildArgs
public NativeImageOptions buildArgs(java.lang.Iterable<?> buildArgs)
Deprecated.Description copied from interface:NativeImageOptionsAdds arguments for the native-image invocation.- Specified by:
buildArgsin 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:NativeImageOptionsAdds some system properties to be used by the native-image builder process.- Specified by:
systemPropertiesin 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:NativeImageOptionsAdds a system property to be used by the native-image builder process.- Specified by:
systemPropertyin 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:NativeImageOptionsAdds elements to the classpath for the native-image building.- Specified by:
classpathin interfaceNativeImageOptions- Parameters:
paths- The classpath elements.- Returns:
- this
-
jvmArgs
public NativeImageOptions jvmArgs(java.lang.Object... arguments)
Deprecated.Description copied from interface:NativeImageOptionsAdds some arguments to use when launching the JVM for the native-image building process.- Specified by:
jvmArgsin interfaceNativeImageOptions- Parameters:
arguments- The arguments.- Returns:
- this
-
jvmArgs
public NativeImageOptions jvmArgs(java.lang.Iterable<?> arguments)
Deprecated.Description copied from interface:NativeImageOptionsAdds some arguments to use when launching the JVM for the native-image building process.- Specified by:
jvmArgsin interfaceNativeImageOptions- Parameters:
arguments- The arguments. Must not be null.- Returns:
- this
-
runtimeArgs
public NativeImageOptions runtimeArgs(java.lang.Object... arguments)
Deprecated.Description copied from interface:NativeImageOptionsAdds some arguments to use when launching the built image.- Specified by:
runtimeArgsin interfaceNativeImageOptions- Parameters:
arguments- The arguments.- Returns:
- this
-
runtimeArgs
public NativeImageOptions runtimeArgs(java.lang.Iterable<?> arguments)
Deprecated.Description copied from interface:NativeImageOptionsAdds some arguments to use when launching the built image.- Specified by:
runtimeArgsin interfaceNativeImageOptions- Parameters:
arguments- The arguments. Must not be null.- Returns:
- this
-
getAgent
public DeprecatedAgentOptions getAgent()
Deprecated.- Specified by:
getAgentin interfaceNativeImageOptions
-
agent
public void agent(org.gradle.api.Action<? super DeprecatedAgentOptions> spec)
Deprecated.- Specified by:
agentin interfaceNativeImageOptions
-
-