Class LevelHeaderedExtension

java.lang.Object
net.octyl.levelheadered.LevelHeaderedExtension
All Implemented Interfaces:
LevelHeaderedConfig

public abstract class LevelHeaderedExtension extends Object implements LevelHeaderedConfig
Extension class for configuring the LevelHeadered plugin.

Only abstract for Gradle, not to be implemented by users.

  • Constructor Details

    • LevelHeaderedExtension

      @Inject public LevelHeaderedExtension(org.gradle.api.resources.TextResourceFactory textResourceFactory)
  • Method Details

    • headerTemplate

      public final void headerTemplate(String template)
      Sets the header template from the given string.
      Parameters:
      template - the template string
      See Also:
    • headerTemplate

      public final void headerTemplate(File templateFile)
      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: