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:
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
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringGRADLE_PLUGIN_VERSIONstatic java.lang.StringGRADLE_VERSIONstatic java.lang.StringNAME_DEFAULT_CLASSES_DIRECTORIESstatic java.lang.StringNAME_DEFAULT_RESOURCES_DIRECTORYstatic java.lang.StringNAME_DEFAULT_WEBAPP_DIRECTORYstatic java.lang.StringNAME_REBEL_XML_DIRECTORYstatic java.lang.StringPACKAGING_TYPE_JARstatic java.lang.StringPACKAGING_TYPE_WAR
-
Constructor Summary
Constructors Constructor Description LegacyRebelGenerateTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgenerate()The actual invocation of our plugin task.booleangetAlwaysGenerate()RebelClasspathgetClasspath()java.io.FilegetConfiguredRelativePath()java.lang.StringgetConfiguredRootPath()java.util.List<java.io.File>getDefaultClassesDirectories$MAGIC()java.util.List<java.io.File>getDefaultClassesDirectory()java.io.FilegetDefaultResourcesDirectory()java.io.FilegetDefaultResourcesDirectory$MAGIC()java.io.FilegetDefaultWebappDirectory()java.io.FilegetDefaultWebappDirectory$MAGIC()booleangetGenerateRebelRemote()java.lang.StringgetPackaging()RebelMainModelgetRebelModel()Getter for the functional tests to examine the modeljava.io.FilegetRebelXmlDirectory()java.io.FilegetRebelXmlDirectory$MAGIC()java.lang.StringgetRemoteId()booleangetShowGenerated()RebelWargetWar()RebelWebgetWeb()voidpropagateConventionMappingSettings()Let 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)voidsetConfiguredRelativePath(java.io.File path)voidsetConfiguredRootPath(java.lang.String path)voidsetGenerateRebelRemote(boolean generateRebelRemote)voidsetPackaging(java.lang.String packaging)voidsetPluginConfigured()The RebelPlugin#configure block has been executedvoidsetRemoteId(java.lang.String remoteId)voidsetShowGenerated(boolean showGenerated)voidsetWar(RebelWar _war)voidsetWeb(RebelWeb web)voidskipWritingRebelXml()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 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
-
-
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)
-
getPackaging
public java.lang.String getPackaging()
- Specified by:
getPackagingin interfaceBaseRebelGenerateTask
-
setPackaging
public void setPackaging(java.lang.String packaging)
-
getShowGenerated
public boolean getShowGenerated()
- Specified by:
getShowGeneratedin interfaceBaseRebelGenerateTask
-
setShowGenerated
public void setShowGenerated(boolean showGenerated)
-
getClasspath
@Internal public RebelClasspath getClasspath()
-
setClasspath
public void setClasspath(RebelClasspath path)
-
getWeb
@Internal public RebelWeb getWeb()
-
setWeb
public void setWeb(RebelWeb web)
-
getWar
public RebelWar getWar()
- Specified by:
getWarin interfaceBaseRebelGenerateTask
-
setWar
public void setWar(RebelWar _war)
-
getAlwaysGenerate
public boolean getAlwaysGenerate()
- Specified by:
getAlwaysGeneratein interfaceBaseRebelGenerateTask
-
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)
-
getRebelModel
public RebelMainModel 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
@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:
propagateConventionMappingSettingsin interfaceBaseRebelGenerateTask
-
-