Class NativeImageCommandLineProvider
- java.lang.Object
-
- org.graalvm.buildtools.gradle.internal.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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
asArguments()
protected java.lang.String
buildClasspathString(NativeImageOptions options)
Builds a classpath string from the given classpath elements.org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile>
getClasspathJar()
org.gradle.api.provider.Provider<java.lang.String>
getExecutableName()
org.gradle.api.provider.Provider<NativeImageOptions>
getOptions()
org.gradle.api.provider.Provider<java.lang.String>
getOutputDirectory()
-
-
-
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
-
getOptions
public org.gradle.api.provider.Provider<NativeImageOptions> getOptions()
-
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 interfaceorg.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
-
-