MCPcopy Index your code
hub / github.com/apache/tomcat / JspC

Class JspC

java/org/apache/jasper/JspC.java:90–1989  ·  view source on GitHub ↗

Shell for the jspc compiler. Handles all options associated with the command line and creates compilation contexts which it then compiles according to the specified options. This version can process files from a _single_ webapp at once, i.e. a single docbase can be specified. It can be used as an An

Source from the content-addressed store, hash-verified

88 * </pre>
89 */
90public class JspC extends Task implements Options {
91
92 /**
93 * Creates a new JspC instance.
94 */
95 public JspC() {
96 }
97
98 static {
99 // the Validator uses this to access the EL ExpressionFactory
100 JspFactory.setDefaultFactory(new JspFactoryImpl());
101 }
102
103 // Logger
104 private static final Log log = LogFactory.getLog(JspC.class);
105
106 /** Command-line switch for enabling verbose output. */
107 protected static final String SWITCH_VERBOSE = "-v";
108 /** Command-line switch for displaying help. */
109 protected static final String SWITCH_HELP = "-help";
110 /** Command-line switch for setting the output directory. */
111 protected static final String SWITCH_OUTPUT_DIR = "-d";
112 /** Command-line switch for setting the package name. */
113 protected static final String SWITCH_PACKAGE_NAME = "-p";
114 /** Command-line switch for enabling/disabling caching. */
115 protected static final String SWITCH_CACHE = "-cache";
116 /** Command-line switch for setting the generated class name. */
117 protected static final String SWITCH_CLASS_NAME = "-c";
118 /** Command-line switch indicating the end of options. */
119 protected static final String SWITCH_FULL_STOP = "--";
120 /** Command-line switch for compiling to class files. */
121 protected static final String SWITCH_COMPILE = "-compile";
122 /** Command-line switch for failing on first error. */
123 protected static final String SWITCH_FAIL_FAST = "-failFast";
124 /** Command-line switch for setting the Java source version. */
125 protected static final String SWITCH_SOURCE = "-source";
126 /** Command-line switch for setting the Java target version. */
127 protected static final String SWITCH_TARGET = "-target";
128 /** Command-line switch for setting the URI base. */
129 protected static final String SWITCH_URI_BASE = "-uribase";
130 /** Command-line switch for setting the URI root. */
131 protected static final String SWITCH_URI_ROOT = "-uriroot";
132 /** Command-line switch for setting the web application root. */
133 protected static final String SWITCH_FILE_WEBAPP = "-webapp";
134 /** Command-line switch for generating a web.xml include file. */
135 protected static final String SWITCH_WEBAPP_INC = "-webinc";
136 /** Command-line switch for generating a web-fragment.xml file. */
137 protected static final String SWITCH_WEBAPP_FRG = "-webfrg";
138 /** Command-line switch for generating a complete web.xml file. */
139 protected static final String SWITCH_WEBAPP_XML = "-webxml";
140 /** Command-line switch for setting the web.xml encoding. */
141 protected static final String SWITCH_WEBAPP_XML_ENCODING = "-webxmlencoding";
142 /** Command-line switch for adding web.xml servlet mappings. */
143 protected static final String SWITCH_ADD_WEBAPP_XML_MAPPINGS = "-addwebxmlmappings";
144 /** Command-line switch for using mapped file compilation. */
145 protected static final String SWITCH_MAPPED = "-mapped";
146 /** Command-line switch for enabling X-Powered-By header. */
147 protected static final String SWITCH_XPOWERED_BY = "-xpoweredBy";

Callers

nothing calls this directly

Calls 3

setDefaultFactoryMethod · 0.95
getLogMethod · 0.95
addMethod · 0.65

Tested by

no test coverage detected