Class MappingTask

java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
fr.flowarg.nmsremaphelper.MappingTask
All Implemented Interfaces:
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>
Direct Known Subclasses:
ObfJarTask, RemapJarTask

public abstract class MappingTask extends org.gradle.api.DefaultTask
Basic mapping parent task class.
  • 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
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Do nothing
    abstract org.gradle.api.file.RegularFileProperty
    The input file to map.
    abstract org.gradle.api.file.RegularFileProperty
    The mappings file to use.
    abstract org.gradle.api.file.RegularFileProperty
    The mapped output file.
    abstract org.gradle.api.provider.Property<Boolean>
    Should reverse the mappings?
    toAbsolute(@NotNull org.gradle.api.file.RegularFileProperty file)
    Convert a RegularFileProperty to an absolute path.

    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, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjects

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.gradle.api.Task

    doNotTrackState, getConvention, notCompatibleWithConfigurationCache
  • Constructor Details

    • MappingTask

      public MappingTask()
  • Method Details

    • execute

      public void execute()
      Do nothing
    • toAbsolute

      public String toAbsolute(@NotNull @NotNull org.gradle.api.file.RegularFileProperty file)
      Convert a RegularFileProperty to an absolute path.
      Parameters:
      file - the file to convert.
      Returns:
      the absolute path.
    • getInputFile

      @InputFile public abstract org.gradle.api.file.RegularFileProperty getInputFile()
      The input file to map.
      Returns:
      the input file to map.
    • getMappingFile

      @InputFile public abstract org.gradle.api.file.RegularFileProperty getMappingFile()
      The mappings file to use.
      Returns:
      the mapping file to use.
    • getShouldReverse

      @Input public abstract org.gradle.api.provider.Property<Boolean> getShouldReverse()
      Should reverse the mappings?
      Returns:
      if it should reverse the mappings.
    • getOutputFile

      @OutputFile public abstract org.gradle.api.file.RegularFileProperty getOutputFile()
      The mapped output file.
      Returns:
      the mapped output file.