Package org.elasticsearch.gradle
Class ExportElasticsearchBuildResourcesTask
- java.lang.Object
-
- org.gradle.api.internal.AbstractTask
-
- org.gradle.api.DefaultTask
-
- org.elasticsearch.gradle.ExportElasticsearchBuildResourcesTask
-
- 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 class ExportElasticsearchBuildResourcesTask extends org.gradle.api.DefaultTaskExport Elasticsearch build resources to configurable pathsWil overwrite existing files and create missing directories. Useful for resources that that need to be passed to other processes trough the filesystem or otherwise can't be consumed from the classpath.
-
-
Constructor Summary
Constructors Constructor Description ExportElasticsearchBuildResourcesTask()
-
Method Summary
Modifier and Type Method Description java.io.Filecopy(java.lang.String resource)voiddoExport()org.gradle.api.file.DirectoryPropertygetOutputDir()java.util.Set<java.lang.String>getResources()java.lang.StringgetResourcesClasspath()voidsetOutputDir(org.gradle.api.file.DirectoryProperty outputDir)-
Methods inherited from class org.gradle.api.DefaultTask
newInputDirectory, newInputFile, newOutputDirectory, newOutputFile
-
Methods inherited from class org.gradle.api.internal.AbstractTask
appendParallelSafeAction, compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString
-
-
-
-
Method Detail
-
getOutputDir
@OutputDirectory public org.gradle.api.file.DirectoryProperty getOutputDir()
-
getResources
@Input @SkipWhenEmpty public java.util.Set<java.lang.String> getResources()
-
getResourcesClasspath
@Classpath public java.lang.String getResourcesClasspath()
-
setOutputDir
public void setOutputDir(org.gradle.api.file.DirectoryProperty outputDir)
-
copy
public java.io.File copy(java.lang.String resource)
-
doExport
public void doExport()
-
-