Package net.octyl.levelheadered
Class LevelHeaderedExtension
java.lang.Object
net.octyl.levelheadered.LevelHeaderedExtension
- All Implemented Interfaces:
LevelHeaderedConfig
Extension class for configuring the LevelHeadered plugin.
Only abstract for Gradle, not to be implemented by users.
-
Constructor Summary
ConstructorsConstructorDescriptionLevelHeaderedExtension(org.gradle.api.resources.TextResourceFactory textResourceFactory) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidheaderTemplate(File templateFile) Sets the header template from the given file.final voidheaderTemplate(String template) Sets the header template from the given string.final voidsourceMatchPatterns(org.gradle.api.Action<? super org.gradle.api.tasks.util.PatternSet> action) Configures the current source match patterns using the given action.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.octyl.levelheadered.LevelHeaderedConfig
getHeaderTemplate, getRewriters, getSourceMatchPatterns, getTemplateVariables
-
Constructor Details
-
LevelHeaderedExtension
@Inject public LevelHeaderedExtension(org.gradle.api.resources.TextResourceFactory textResourceFactory)
-
-
Method Details
-
headerTemplate
Sets the header template from the given string.- Parameters:
template- the template string- See Also:
-
headerTemplate
Sets the header template from the given file. UTF-8 encoding is used.- Parameters:
templateFile- the template file- See Also:
-
sourceMatchPatterns
public final void sourceMatchPatterns(org.gradle.api.Action<? super org.gradle.api.tasks.util.PatternSet> action) Configures the current source match patterns using the given action.- Parameters:
action- the action to configure the pattern set- See Also:
-