Closed venkatwilliams closed 11 months ago
I think you need to pass the correct content type to the generate gradle task, aka Plain.
What's the correct way to pass ContentType.Plain in generate Gradle task? Can you share some example.?
I think it works like this:
jte {
generate()
contentType = ContentType.Plain
}
Thanks this Option worked perfectly.
this.templateEngine = TemplateEngine.createPrecompiled(ContentType.Plain);
Getting the following error:documents.jte
GeneratedClass:
If I use viewResolver with ContentType.Plain generated class uses TemplateOutput instead of HtmlTemplateOutput Which works well in local but fails in stage environment as we need to run this.templateEngine = TemplateEngine.createPrecompiled(ContentType.Plain);
Solution could be to change the default ContentType value from Html to Plain. One of the option which had tried is the following in build.gradle file with this approach generated classes not getting included in JAR file.
Appreciate your suggestions to resolve this issue.