Package org.zeroturnaround.jrebel.gradle
Class LegacyRebelGenerateTask
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.zeroturnaround.jrebel.gradle.LegacyRebelGenerateTask
- All Implemented Interfaces:
Comparable<org.gradle.api.Task>,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,org.gradle.api.Named,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.Named
org.gradle.api.Named.Namer -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate()The actual invocation of our plugin task.booleanbooleanGetter for the functional tests to examine the modelbooleangetWar()getWeb()voidLet the convention-mappings propagate its settings to me through the magic getters, save copies of them locally into normal instance variables.voidsetAlwaysGenerate(boolean alwaysGenerate) voidsetClasspath(RebelClasspath path) voidvoidsetConfiguredRootPath(String path) voidsetGenerateRebelRemote(boolean generateRebelRemote) voidsetPackaging(String packaging) voidThe RebelPlugin#configure block has been executedvoidsetRemoteId(String remoteId) voidsetShowGenerated(boolean showGenerated) voidvoidvoidOnly 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, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceMethods inherited from class org.gradle.api.internal.AbstractTask
acceptServiceReferences, appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjectsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.gradle.api.plugins.ExtensionAware
getExtensionsMethods inherited from interface org.gradle.api.Task
configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, doNotTrackState, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getFinalizedBy, getGroup, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getPath, getProject, getShouldRunAfter, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, notCompatibleWithConfigurationCache, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
-
Field Details
-
PACKAGING_TYPE_JAR
- See Also:
-
PACKAGING_TYPE_WAR
- See Also:
-
GRADLE_PLUGIN_VERSION
-
GRADLE_VERSION
-
NAME_DEFAULT_CLASSES_DIRECTORIES
- See Also:
-
NAME_DEFAULT_RESOURCES_DIRECTORY
- See Also:
-
NAME_DEFAULT_WEBAPP_DIRECTORY
- See Also:
-
NAME_REBEL_XML_DIRECTORY
- See Also:
-
-
Constructor Details
-
LegacyRebelGenerateTask
public LegacyRebelGenerateTask()
-
-
Method Details
-
getConfiguredRootPath
-
setConfiguredRootPath
-
getConfiguredRelativePath
-
setConfiguredRelativePath
-
getPackaging
- Specified by:
getPackagingin interfaceBaseRebelGenerateTask
-
setPackaging
-
getShowGenerated
public boolean getShowGenerated()- Specified by:
getShowGeneratedin interfaceBaseRebelGenerateTask
-
setShowGenerated
public void setShowGenerated(boolean showGenerated) -
getClasspath
-
setClasspath
-
getWeb
-
setWeb
-
getWar
- Specified by:
getWarin interfaceBaseRebelGenerateTask
-
setWar
-
getAlwaysGenerate
public boolean getAlwaysGenerate()- Specified by:
getAlwaysGeneratein interfaceBaseRebelGenerateTask
-
setAlwaysGenerate
public void setAlwaysGenerate(boolean alwaysGenerate) -
getDefaultClassesDirectory
-
getDefaultResourcesDirectory
-
getDefaultWebappDirectory
-
getRebelXmlDirectory
-
getRemoteId
-
setRemoteId
-
getGenerateRebelRemote
@Internal public boolean getGenerateRebelRemote() -
setGenerateRebelRemote
public void setGenerateRebelRemote(boolean generateRebelRemote) -
getRebelModel
Getter for the functional tests to examine the model- Specified by:
getRebelModelin interfaceBaseRebelGenerateTask
-
skipWritingRebelXml
public void skipWritingRebelXml()Only for automated tests! Tests should not try to write the actual file.- Specified by:
skipWritingRebelXmlin interfaceBaseRebelGenerateTask
-
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:
generatein interfaceBaseRebelGenerateTask
-
getDefaultClassesDirectories$MAGIC
-
getDefaultResourcesDirectory$MAGIC
-
getDefaultWebappDirectory$MAGIC
-
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:
propagateConventionMappingSettingsin interfaceBaseRebelGenerateTask
-