Class DeprecatedNativeImageOptions

  • All Implemented Interfaces:
    NativeImageOptions, org.gradle.api.Named

    @Deprecated
    public abstract class DeprecatedNativeImageOptions
    extends java.lang.Object
    implements NativeImageOptions
    Deprecated.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.gradle.api.Named

        org.gradle.api.Named.Namer
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void agent​(org.gradle.api.Action<? super DeprecatedAgentOptions> spec)
      Deprecated.
       
      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.
      DeprecatedAgentOptions getAgent()
      Deprecated.
       
      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.
      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.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
    • 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 interface org.gradle.api.Named
        Specified by:
        getName in interface NativeImageOptions
      • 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 interface NativeImageOptions
        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 interface NativeImageOptions
        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 interface NativeImageOptions
        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 interface NativeImageOptions
        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: NativeImageOptions
        Returns the environment variables which will be used by the native-image builder process.
        Specified by:
        getEnvironmentVariables in interface NativeImageOptions
        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: NativeImageOptions
        Returns the classpath for the native-image building.
        Specified by:
        getClasspath in interface NativeImageOptions
        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 interface NativeImageOptions
        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 interface NativeImageOptions
        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 interface NativeImageOptions
        Returns:
        Is debug enabled
      • getFallback

        @Input
        public org.gradle.api.provider.Property<java.lang.Boolean> getFallback()
        Deprecated.
        Specified by:
        getFallback in interface NativeImageOptions
        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 interface NativeImageOptions
        Returns:
        Is verbose output
      • 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 interface NativeImageOptions
        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 interface NativeImageOptions
        Returns:
        the detected java launcher
      • 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 interface NativeImageOptions
        Returns:
        a collection of directories
      • 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 interface NativeImageOptions
        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 interface NativeImageOptions
        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 interface NativeImageOptions
        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 interface NativeImageOptions
        Parameters:
        name - The name of the property
        value - 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 interface NativeImageOptions
        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 interface NativeImageOptions
        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 interface NativeImageOptions
        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 interface NativeImageOptions
        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 interface NativeImageOptions
        Parameters:
        arguments - The arguments. Must not be null.
        Returns:
        this