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 Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
exec()
abstract org.gradle.api.provider.Property<java.lang.Boolean>
getAgentEnabled()
abstract org.gradle.api.file.RegularFileProperty
getClasspathJar()
protected abstract org.gradle.process.ExecOperations
getExecOperations()
org.gradle.api.provider.Provider<java.lang.String>
getExecutableName()
protected org.gradle.api.provider.Provider<java.lang.String>
getGraalVMHome()
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()
protected abstract org.gradle.api.file.DirectoryProperty
getWorkingDirectory()
-
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, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
-
Methods inherited from class org.gradle.api.internal.AbstractTask
appendParallelSafeAction, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getOnlyIf, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, prependParallelSafeAction, setImpliesSubProjects
-
-
-
-
Method Detail
-
getOptions
public abstract org.gradle.api.provider.Property<NativeImageOptions> getOptions()
-
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()
-
getGraalVMHome
@Optional @Input protected org.gradle.api.provider.Provider<java.lang.String> getGraalVMHome()
-
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()
-
getAgentEnabled
@Input public abstract org.gradle.api.provider.Property<java.lang.Boolean> getAgentEnabled()
-
getProviders
@Inject protected abstract org.gradle.api.provider.ProviderFactory getProviders()
-
getClasspathJar
@InputFile @Optional public abstract org.gradle.api.file.RegularFileProperty getClasspathJar()
-
getService
@Internal public abstract org.gradle.api.provider.Property<java.lang.Object> getService()
-
exec
public void exec()
-
-