Class 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.DefaultTask
    Export Elasticsearch build resources to configurable paths

    Wil 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.

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.gradle.api.Task

        org.gradle.api.Task.Namer
    • Field Summary

      • Fields inherited from interface org.gradle.api.Task

        TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
    • Method Summary

      Modifier and Type Method Description
      java.io.File copy​(java.lang.String resource)  
      void doExport()  
      org.gradle.api.file.DirectoryProperty getOutputDir()  
      java.util.Set<java.lang.String> getResources()  
      java.lang.String getResourcesClasspath()  
      void setOutputDir​(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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ExportElasticsearchBuildResourcesTask

        public ExportElasticsearchBuildResourcesTask()
    • 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()