Bug 55252 - Separate Ant and command-line wrappers for JspC
Summary: Separate Ant and command-line wrappers for JspC
Status: NEW
Alias: None
Product: Tomcat 8
Classification: Unclassified
Component: Jasper (show other bugs)
Version: 8.0.x-trunk
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ----
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2013-07-12 04:38 UTC by Jeremy Boynes
Modified: 2013-07-12 04:38 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Boynes 2013-07-12 04:38:05 UTC
JspC is currently both an Ant task and a main() class that can be invoked from a command line. By refactoring into individual classes each can be integrated better with that mode of invocation. 

For example, the Ant version could accept filesets indicating which JSP files to compile allowing use of Ant's mechanisms for creating filesets (with exclusions). This could also be used to supply the content of the webapp's parent classloader as a <classpath> rather than as a simple String.

To do this I would propose keeping JspC as the name of the class for the command line version and adding a JspCTask for use with Ant as for Ant the actual class name is defined in catalina.tasks properties file.