Class BuildNativeImageTask
- java.lang.Object
-
- org.gradle.api.internal.AbstractTask
-
- org.gradle.api.DefaultTask
-
- org.graalvm.buildtools.gradle.tasks.BuildNativeImageTask
-
- All Implemented Interfaces:
java.lang.Comparable<org.gradle.api.Task>
,org.gradle.api.internal.DynamicObjectAware
,org.gradle.api.internal.TaskInternal
,org.gradle.api.plugins.ExtensionAware
,org.gradle.api.Task
,org.gradle.util.Configurable<org.gradle.api.Task>
public abstract class BuildNativeImageTask extends org.gradle.api.DefaultTask
This task is responsible for generating a native image by calling the corresponding tool in the GraalVM toolchain.
-
-
Constructor Summary
Constructors Constructor Description BuildNativeImageTask()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addEnvVar(java.lang.String property)
void
addSystemProperty(java.lang.String property)
void
appendBuildArgs(java.util.List<java.lang.String> buildArgs)
void
appendJvmArgs(java.util.List<java.lang.String> jvmArgs)
void
exec()
abstract org.gradle.api.file.RegularFileProperty
getClasspathJar()
protected NativeImageCompileOptions
getCompileOptions()
abstract org.gradle.api.provider.Property<java.lang.Boolean>
getDisableToolchainDetection()
protected abstract org.gradle.process.ExecOperations
getExecOperations()
org.gradle.api.provider.Provider<java.lang.String>
getExecutableName()
org.gradle.api.provider.Provider<java.lang.String>
getExecutableShortName()
protected org.gradle.api.provider.Provider<java.lang.String>
getGraalVMHome()
protected abstract org.gradle.api.model.ObjectFactory
getObjects()
abstract org.gradle.api.provider.Property<NativeImageOptions>
getOptions()
abstract org.gradle.api.file.DirectoryProperty
getOutputDirectory()
org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile>
getOutputFile()
protected abstract org.gradle.api.provider.ProviderFactory
getProviders()
abstract org.gradle.api.provider.Property<java.lang.Object>
getService()
abstract org.gradle.api.file.DirectoryProperty
getTestListDirectory()
abstract org.gradle.api.provider.Property<java.lang.Boolean>
getUseArgFile()
static java.lang.String
getVersionString(org.gradle.process.ExecOperations execOperations, java.io.File executablePath)
protected abstract org.gradle.api.file.DirectoryProperty
getWorkingDirectory()
void
overrideBuildArgs(java.util.List<java.lang.String> buildArgs)
void
overrideDebugBuild(boolean debug)
void
overrideFallbackBuild(boolean fallback)
void
overrideFatJar(boolean fatJar)
void
overrideImageName(java.lang.String imageName)
void
overrideJvmArgs(java.util.List<java.lang.String> jvmArgs)
void
overrideMainClass(java.lang.String mainClass)
void
overridePgoInstrument(boolean pgo)
void
overrideQuickBuild(boolean quickBuild)
void
overrideRichOutput(boolean richOutput)
void
overrideVerboseBuild(boolean verbose)
-
Methods inherited from class org.gradle.api.DefaultTask
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
-
Methods inherited from class org.gradle.api.internal.AbstractTask
acceptServiceReferences, appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjects
-
-
-
-
Method Detail
-
getOptions
@Internal public abstract org.gradle.api.provider.Property<NativeImageOptions> getOptions()
-
getCompileOptions
protected NativeImageCompileOptions getCompileOptions()
-
overrideQuickBuild
public void overrideQuickBuild(boolean quickBuild)
-
overrideDebugBuild
public void overrideDebugBuild(boolean debug)
-
overrideVerboseBuild
public void overrideVerboseBuild(boolean verbose)
-
overrideFallbackBuild
public void overrideFallbackBuild(boolean fallback)
-
overridePgoInstrument
public void overridePgoInstrument(boolean pgo)
-
overrideMainClass
public void overrideMainClass(java.lang.String mainClass)
-
appendBuildArgs
public void appendBuildArgs(java.util.List<java.lang.String> buildArgs)
-
overrideBuildArgs
public void overrideBuildArgs(java.util.List<java.lang.String> buildArgs)
-
overrideRichOutput
public void overrideRichOutput(boolean richOutput)
-
overrideImageName
public void overrideImageName(java.lang.String imageName)
-
overrideFatJar
public void overrideFatJar(boolean fatJar)
-
addSystemProperty
public void addSystemProperty(java.lang.String property)
-
addEnvVar
public void addEnvVar(java.lang.String property)
-
appendJvmArgs
public void appendJvmArgs(java.util.List<java.lang.String> jvmArgs)
-
overrideJvmArgs
public void overrideJvmArgs(java.util.List<java.lang.String> jvmArgs)
-
getExecOperations
@Inject protected abstract org.gradle.process.ExecOperations getExecOperations()
-
getWorkingDirectory
@Internal protected abstract org.gradle.api.file.DirectoryProperty getWorkingDirectory()
-
getOutputDirectory
@OutputDirectory public abstract org.gradle.api.file.DirectoryProperty getOutputDirectory()
-
getTestListDirectory
@InputDirectory @Optional public abstract org.gradle.api.file.DirectoryProperty getTestListDirectory()
-
getGraalVMHome
@Optional @Input protected org.gradle.api.provider.Provider<java.lang.String> getGraalVMHome()
-
getExecutableShortName
@Internal public org.gradle.api.provider.Provider<java.lang.String> getExecutableShortName()
-
getExecutableName
@Internal public org.gradle.api.provider.Provider<java.lang.String> getExecutableName()
-
getOutputFile
@Internal public org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile> getOutputFile()
-
getDisableToolchainDetection
@Input public abstract org.gradle.api.provider.Property<java.lang.Boolean> getDisableToolchainDetection()
-
getProviders
@Inject protected abstract org.gradle.api.provider.ProviderFactory getProviders()
-
getObjects
@Inject protected abstract org.gradle.api.model.ObjectFactory getObjects()
-
getClasspathJar
@InputFile @Optional public abstract org.gradle.api.file.RegularFileProperty getClasspathJar()
-
getUseArgFile
@Input @Optional public abstract org.gradle.api.provider.Property<java.lang.Boolean> getUseArgFile()
-
getService
@Internal public abstract org.gradle.api.provider.Property<java.lang.Object> getService()
-
exec
public void exec()
-
getVersionString
public static java.lang.String getVersionString(org.gradle.process.ExecOperations execOperations, java.io.File executablePath)
-
-