Class LegacyRebelGenerateTask

  • 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>, BaseRebelGenerateTask

    public class LegacyRebelGenerateTask
    extends org.gradle.api.DefaultTask
    implements BaseRebelGenerateTask
    • Nested Class Summary

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void generate()
      The actual invocation of our plugin task.
      boolean getAlwaysGenerate()  
      RebelClasspath getClasspath()  
      java.io.File getConfiguredRelativePath()  
      java.lang.String getConfiguredRootPath()  
      java.util.List<java.io.File> getDefaultClassesDirectories$MAGIC()  
      java.util.List<java.io.File> getDefaultClassesDirectory()  
      java.io.File getDefaultResourcesDirectory()  
      java.io.File getDefaultResourcesDirectory$MAGIC()  
      java.io.File getDefaultWebappDirectory()  
      java.io.File getDefaultWebappDirectory$MAGIC()  
      boolean getGenerateRebelRemote()  
      java.lang.String getPackaging()  
      RebelMainModel getRebelModel()
      Getter for the functional tests to examine the model
      java.io.File getRebelXmlDirectory()  
      java.io.File getRebelXmlDirectory$MAGIC()  
      java.lang.String getRemoteId()  
      boolean getShowGenerated()  
      RebelWar getWar()  
      RebelWeb getWeb()  
      void propagateConventionMappingSettings()
      Let the convention-mappings propagate its settings to me through the magic getters, save copies of them locally into normal instance variables.
      void setAlwaysGenerate​(boolean alwaysGenerate)  
      void setClasspath​(RebelClasspath path)  
      void setConfiguredRelativePath​(java.io.File path)  
      void setConfiguredRootPath​(java.lang.String path)  
      void setGenerateRebelRemote​(boolean generateRebelRemote)  
      void setPackaging​(java.lang.String packaging)  
      void setPluginConfigured()
      The RebelPlugin#configure block has been executed
      void setRemoteId​(java.lang.String remoteId)  
      void setShowGenerated​(boolean showGenerated)  
      void setWar​(RebelWar _war)  
      void setWeb​(RebelWeb web)  
      void skipWritingRebelXml()
      Only for automated tests! Tests should not try to write the actual file.
      • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Comparable

        compareTo
      • Methods inherited from interface org.gradle.api.plugins.ExtensionAware

        getExtensions
      • Methods inherited from interface org.gradle.api.Task

        configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getFinalizedBy, getGroup, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getPath, getProject, getShouldRunAfter, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
    • Field Detail

      • PACKAGING_TYPE_JAR

        public static final java.lang.String PACKAGING_TYPE_JAR
        See Also:
        Constant Field Values
      • PACKAGING_TYPE_WAR

        public static final java.lang.String PACKAGING_TYPE_WAR
        See Also:
        Constant Field Values
      • GRADLE_PLUGIN_VERSION

        public static final java.lang.String GRADLE_PLUGIN_VERSION
      • GRADLE_VERSION

        public static final java.lang.String GRADLE_VERSION
      • NAME_DEFAULT_CLASSES_DIRECTORIES

        public static final java.lang.String NAME_DEFAULT_CLASSES_DIRECTORIES
        See Also:
        Constant Field Values
      • NAME_DEFAULT_RESOURCES_DIRECTORY

        public static final java.lang.String NAME_DEFAULT_RESOURCES_DIRECTORY
        See Also:
        Constant Field Values
      • NAME_DEFAULT_WEBAPP_DIRECTORY

        public static final java.lang.String NAME_DEFAULT_WEBAPP_DIRECTORY
        See Also:
        Constant Field Values
      • NAME_REBEL_XML_DIRECTORY

        public static final java.lang.String NAME_REBEL_XML_DIRECTORY
        See Also:
        Constant Field Values
    • Constructor Detail

      • LegacyRebelGenerateTask

        public LegacyRebelGenerateTask()
    • Method Detail

      • getConfiguredRootPath

        @Internal
        public java.lang.String getConfiguredRootPath()
      • setConfiguredRootPath

        public void setConfiguredRootPath​(java.lang.String path)
      • getConfiguredRelativePath

        @Internal
        public java.io.File getConfiguredRelativePath()
      • setConfiguredRelativePath

        public void setConfiguredRelativePath​(java.io.File path)
      • setPackaging

        public void setPackaging​(java.lang.String packaging)
      • setShowGenerated

        public void setShowGenerated​(boolean showGenerated)
      • getWeb

        @Internal
        public RebelWeb getWeb()
      • setWeb

        public void setWeb​(RebelWeb web)
      • setWar

        public void setWar​(RebelWar _war)
      • setAlwaysGenerate

        public void setAlwaysGenerate​(boolean alwaysGenerate)
      • getDefaultClassesDirectory

        @Internal
        public java.util.List<java.io.File> getDefaultClassesDirectory()
      • getDefaultResourcesDirectory

        @Internal
        public java.io.File getDefaultResourcesDirectory()
      • getDefaultWebappDirectory

        @Internal
        public java.io.File getDefaultWebappDirectory()
      • getRebelXmlDirectory

        @Internal
        public java.io.File getRebelXmlDirectory()
      • getRemoteId

        @Internal
        public java.lang.String getRemoteId()
      • setRemoteId

        public void setRemoteId​(java.lang.String remoteId)
      • getGenerateRebelRemote

        @Internal
        public boolean getGenerateRebelRemote()
      • setGenerateRebelRemote

        public void setGenerateRebelRemote​(boolean generateRebelRemote)
      • skipWritingRebelXml

        public void skipWritingRebelXml()
        Only for automated tests! Tests should not try to write the actual file.
        Specified by:
        skipWritingRebelXml in interface BaseRebelGenerateTask
      • setPluginConfigured

        public void setPluginConfigured()
        The RebelPlugin#configure block has been executed
      • generate

        public void generate()
        The actual invocation of our plugin task. Will construct the in-memory model (RebelXmlBuilder), generate the XML output based on it and write the XML into a file-system file (rebel.xml).
        Specified by:
        generate in interface BaseRebelGenerateTask
      • getDefaultClassesDirectories$MAGIC

        @Internal
        public java.util.List<java.io.File> getDefaultClassesDirectories$MAGIC()
      • getDefaultResourcesDirectory$MAGIC

        @Internal
        public java.io.File getDefaultResourcesDirectory$MAGIC()
      • getDefaultWebappDirectory$MAGIC

        @Internal
        public java.io.File getDefaultWebappDirectory$MAGIC()
      • getRebelXmlDirectory$MAGIC

        @Internal
        public java.io.File getRebelXmlDirectory$MAGIC()
      • propagateConventionMappingSettings

        public void propagateConventionMappingSettings()
        Let the convention-mappings propagate its settings to me through the magic getters, save copies of them locally into normal instance variables. (public only for unit tests)
        Specified by:
        propagateConventionMappingSettings in interface BaseRebelGenerateTask