Class NativeImageCommandLineProvider

  • All Implemented Interfaces:
    org.gradle.process.CommandLineArgumentProvider

    public class NativeImageCommandLineProvider
    extends java.lang.Object
    implements org.gradle.process.CommandLineArgumentProvider
    • Constructor Summary

      Constructors 
      Constructor Description
      NativeImageCommandLineProvider​(org.gradle.api.provider.Provider<NativeImageOptions> options, org.gradle.api.provider.Provider<java.lang.String> executableName, org.gradle.api.provider.Provider<java.lang.String> workingDirectory, org.gradle.api.provider.Provider<java.lang.String> outputDirectory, org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile> classpathJar, org.gradle.api.provider.Provider<java.lang.Boolean> useArgFile)  
    • Constructor Detail

      • NativeImageCommandLineProvider

        public NativeImageCommandLineProvider​(org.gradle.api.provider.Provider<NativeImageOptions> options,
                                              org.gradle.api.provider.Provider<java.lang.String> executableName,
                                              org.gradle.api.provider.Provider<java.lang.String> workingDirectory,
                                              org.gradle.api.provider.Provider<java.lang.String> outputDirectory,
                                              org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile> classpathJar,
                                              org.gradle.api.provider.Provider<java.lang.Boolean> useArgFile)
    • Method Detail

      • getExecutableName

        @Input
        public org.gradle.api.provider.Provider<java.lang.String> getExecutableName()
      • getOutputDirectory

        @Input
        public org.gradle.api.provider.Provider<java.lang.String> getOutputDirectory()
      • getClasspathJar

        @InputFile
        public org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile> getClasspathJar()
      • asArguments

        public java.util.List<java.lang.String> asArguments()
        Specified by:
        asArguments in interface org.gradle.process.CommandLineArgumentProvider
      • buildClasspathString

        protected java.lang.String buildClasspathString​(NativeImageOptions options)
        Builds a classpath string from the given classpath elements. This can be overridden by subclasses for special needs. For example, the Micronaut plugin requires this because it's going to build images within a docker container, which makes it so that the paths in the options are invalid (they would be prefixed by a Windows path).
        Parameters:
        options - the native options
        Returns:
        the classpath string