[ 
https://issues.apache.org/jira/browse/SLING-7155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16182330#comment-16182330
 ] 

Tobias Bocanegra commented on SLING-7155:
-----------------------------------------

bq. Ok, but as mentioned before, precompiling the classes is useless for Sling
but couldn't it generate a bundle that contains a servlet that executes the 
compiled classes? this way you would have robust, precompiled, immutable 
scripts.

bq.  what about if the plugin would just transpile HTL to Java and add these 
Java classes to the list of source folders for the project?
that would be ideal. java source code or java classes. both ok.


> htl-maven-plugin: Add option to precompile the HTL scripts
> ----------------------------------------------------------
>
>                 Key: SLING-7155
>                 URL: https://issues.apache.org/jira/browse/SLING-7155
>             Project: Sling
>          Issue Type: Improvement
>          Components: Maven Plugins and Archetypes
>    Affects Versions: HTL Maven Plugin 1.0.8
>            Reporter: Tobias Bocanegra
>
> It would be cool if the HTL Maven Plugin could precompile the HTL scripts, 
> similar to the JSPC plugin.
> This would have the following advantages:
> * the project needs to specify all the (compile time) dependencies the 
> scripts needs; this makes the project more robust and changes in dependencies 
> are easier detectable;
> * the compiled classes could be used as source to generate the import-package 
> statements for the {{filevault-package-maven-plugin}}.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to