org.zeroturnaround.jrebel.gradle
Class RebelGenerateTask

java.lang.Object
  extended by org.gradle.api.internal.AbstractTask
      extended by org.gradle.api.DefaultTask
          extended by org.zeroturnaround.jrebel.gradle.RebelGenerateTask
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 RebelGenerateTask
extends org.gradle.api.DefaultTask


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.gradle.api.Task
org.gradle.api.Task.Namer
 
Field Summary
static java.lang.String NAME_DEFAULT_CLASSES_DIRECTORY
           
static java.lang.String NAME_DEFAULT_RESOURCES_DIRECTORY
           
static java.lang.String NAME_DEFAULT_WEBAPP_DIRECTORY
           
static java.lang.String NAME_REBEL_XML_DIRECTORY
           
static java.lang.String PACKAGING_TYPE_JAR
           
static java.lang.String PACKAGING_TYPE_WAR
           
 
Fields inherited from interface org.gradle.api.Task
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
 
Constructor Summary
RebelGenerateTask()
           
 
Method Summary
 void generate()
          The actual invocation of our plugin task.
 java.lang.Boolean getAlwaysGenerate()
           
 RebelClasspath getClasspath()
           
 java.io.File getConfiguredRelativePath()
           
 java.lang.String getConfiguredRootPath()
           
 java.io.File getDefaultClassesDirectory()
           
 java.io.File getDefaultClassesDirectory$MAGIC()
           
 java.io.File getDefaultResourcesDirectory()
           
 java.io.File getDefaultResourcesDirectory$MAGIC()
           
 java.io.File getDefaultWebappDirectory()
           
 java.io.File getDefaultWebappDirectory$MAGIC()
           
 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.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(java.lang.Boolean _alwaysGenerate)
           
 void setClasspath(RebelClasspath path)
           
 void setConfiguredRelativePath(java.io.File path)
           
 void setConfiguredRootPath(java.lang.String path)
           
 void setPackaging(java.lang.String packaging)
           
 void setPluginConfigured()
          The RebelPlugin#configure block has been executed
 void setShowGenerated(java.lang.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.internal.AbstractTask
addValidator, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, executeWithoutThrowingTaskFailure, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDidWork, getEnabled, getExecuter, getExtensions, getGroup, getInputs, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getStandardOutputCapture, getState, getStateInternal, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, leftShift, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setGroup, setMustRunAfter, setName, setOnlyIf, setOnlyIf, setProject, setProperty, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

NAME_DEFAULT_CLASSES_DIRECTORY

public static final java.lang.String NAME_DEFAULT_CLASSES_DIRECTORY
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

RebelGenerateTask

public RebelGenerateTask()
Method Detail

getConfiguredRootPath

public java.lang.String getConfiguredRootPath()

setConfiguredRootPath

public void setConfiguredRootPath(java.lang.String path)

getConfiguredRelativePath

public java.io.File getConfiguredRelativePath()

setConfiguredRelativePath

public void setConfiguredRelativePath(java.io.File path)

getPackaging

public java.lang.String getPackaging()

setPackaging

public void setPackaging(java.lang.String packaging)

getShowGenerated

public java.lang.Boolean getShowGenerated()

setShowGenerated

public void setShowGenerated(java.lang.Boolean showGenerated)

getClasspath

public RebelClasspath getClasspath()

setClasspath

public void setClasspath(RebelClasspath path)

getWeb

public RebelWeb getWeb()

setWeb

public void setWeb(RebelWeb web)

getWar

public RebelWar getWar()

setWar

public void setWar(RebelWar _war)

getAlwaysGenerate

public java.lang.Boolean getAlwaysGenerate()

setAlwaysGenerate

public void setAlwaysGenerate(java.lang.Boolean _alwaysGenerate)

getDefaultClassesDirectory

public java.io.File getDefaultClassesDirectory()

getDefaultResourcesDirectory

public java.io.File getDefaultResourcesDirectory()

getDefaultWebappDirectory

public java.io.File getDefaultWebappDirectory()

getRebelXmlDirectory

public java.io.File getRebelXmlDirectory()

getRebelModel

public RebelMainModel getRebelModel()
Getter for the functional tests to examine the model


skipWritingRebelXml

public void skipWritingRebelXml()
Only for automated tests! Tests should not try to write the actual file.


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


getDefaultClassesDirectory$MAGIC

public java.io.File getDefaultClassesDirectory$MAGIC()

getDefaultResourcesDirectory$MAGIC

public java.io.File getDefaultResourcesDirectory$MAGIC()

getDefaultWebappDirectory$MAGIC

public java.io.File getDefaultWebappDirectory$MAGIC()

getRebelXmlDirectory$MAGIC

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)