Package gg.jte.gradle
Interface GenerateJteParams
- All Superinterfaces:
org.gradle.workers.WorkParameters
public interface GenerateJteParams
extends org.gradle.workers.WorkParameters
Worker API requires a Parameters type that is a 'managed object', to pass data to the Worker.
All property types must be Serializable.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.workers.WorkParameters
org.gradle.workers.WorkParameters.None -
Method Summary
Modifier and TypeMethodDescriptionorg.gradle.api.provider.Property<Boolean>Setting, that UTF-8 encodes all static template parts at compile time.org.gradle.api.file.ConfigurableFileCollectionThe classpath to use for compilation, including any compiler dependenciesorg.gradle.api.provider.Property<gg.jte.ContentType>The content type of all templates.org.gradle.api.provider.Property<Boolean>By default, jte omits all HTML/CSS/JS comments, when compiling withContentType.Html.org.gradle.api.provider.Property<String[]>Intercepts the given html tags during template compilation and calls the configured htmlInterceptor during template rendering.Optional - Extensions this template engine should load.org.gradle.api.provider.Property<String>The package name, where template classes are generated toorg.gradle.api.provider.Property<String>"group/artifact" of the project using jte.org.gradle.api.file.RegularFilePropertyThe directory where template files are located.org.gradle.api.file.RegularFilePropertyDestination directory to store generated templates.org.gradle.api.file.RegularFilePropertyDirectory in which to generate non-java files (resources).org.gradle.api.provider.Property<Boolean>Trims control structures, resulting in prettier output.
-
Method Details
-
getSourceDirectory
org.gradle.api.file.RegularFileProperty getSourceDirectory()The directory where template files are located. -
getTargetDirectory
org.gradle.api.file.RegularFileProperty getTargetDirectory()Destination directory to store generated templates. -
getContentType
org.gradle.api.provider.Property<gg.jte.ContentType> getContentType()The content type of all templates. Either Plain or Html. -
getPackageName
org.gradle.api.provider.Property<String> getPackageName()The package name, where template classes are generated to -
getTrimControlStructures
org.gradle.api.provider.Property<Boolean> getTrimControlStructures()Trims control structures, resulting in prettier output. -
getHtmlTags
org.gradle.api.provider.Property<String[]> getHtmlTags()Intercepts the given html tags during template compilation and calls the configured htmlInterceptor during template rendering. -
getHtmlCommentsPreserved
org.gradle.api.provider.Property<Boolean> getHtmlCommentsPreserved()By default, jte omits all HTML/CSS/JS comments, when compiling withContentType.Html. If you don't want this behavior, you can disable it here. -
getBinaryStaticContent
org.gradle.api.provider.Property<Boolean> getBinaryStaticContent()Setting, that UTF-8 encodes all static template parts at compile time. Only makes sense if you use a binary output, likeUtf8ByteOutput. -
getTargetResourceDirectory
org.gradle.api.file.RegularFileProperty getTargetResourceDirectory()Directory in which to generate non-java files (resources). Typically, set by plugin rather than end user. Optional - if null, resources will not be generated -
getProjectNamespace
org.gradle.api.provider.Property<String> getProjectNamespace()"group/artifact" of the project using jte. Typically, set by plugin rather than end user. Optional - usually done by Gradle. -
getJteExtensions
Optional - Extensions this template engine should load. Currently, the following extensions exist:- gg.jte.models.generator.ModelExtension
- gg.jte.nativeimage.NativeResourcesExtension
-
getCompilerClasspath
org.gradle.api.file.ConfigurableFileCollection getCompilerClasspath()The classpath to use for compilation, including any compiler dependencies
-