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

Method main

java/org/apache/jasper/JspC.java:368–387  ·  view source on GitHub ↗

Entry point for the JspC command-line tool. @param arg Command-line arguments

(String[] arg)

Source from the content-addressed store, hash-verified

366 * @param arg Command-line arguments
367 */
368 public static void main(String[] arg) {
369 if (arg.length == 0) {
370 System.out.println(Localizer.getMessage("jspc.usage"));
371 } else {
372 JspC jspc = new JspC();
373 try {
374 jspc.setArgs(arg);
375 if (jspc.helpNeeded) {
376 System.out.println(Localizer.getMessage("jspc.usage"));
377 } else {
378 jspc.execute();
379 }
380 } catch (JasperException | BuildException e) {
381 System.err.println(e);
382 if (jspc.dieLevel != NO_DIE_LEVEL) {
383 System.exit(jspc.dieLevel);
384 }
385 }
386 }
387 }
388
389 /**
390 * Apply command-line arguments.

Callers

nothing calls this directly

Calls 4

getMessageMethod · 0.95
setArgsMethod · 0.95
executeMethod · 0.95
printlnMethod · 0.45

Tested by

no test coverage detected