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

Method getProject

java/org/apache/jasper/compiler/AntCompiler.java:79–104  ·  view source on GitHub ↗

Returns the Ant project, initializing it if necessary. @return the Ant project

()

Source from the content-addressed store, hash-verified

77 * @return the Ant project
78 */
79 protected Project getProject() {
80
81 if (project != null) {
82 return project;
83 }
84
85 // Initializing project
86 project = new Project();
87 logger = new JasperAntLogger();
88 logger.setOutputPrintStream(System.out);
89 logger.setErrorPrintStream(System.err);
90 logger.setMessageOutputLevel(Project.MSG_INFO);
91 project.addBuildListener(logger);
92 if (System.getProperty(Constants.CATALINA_HOME_PROP) != null) {
93 project.setBasedir(System.getProperty(Constants.CATALINA_HOME_PROP));
94 }
95
96 if (options.getCompiler() != null) {
97 if (log.isTraceEnabled()) {
98 log.trace("Compiler " + options.getCompiler());
99 }
100 project.setProperty("build.compiler", options.getCompiler());
101 }
102 project.init();
103 return project;
104 }
105
106 /**
107 * Ant logger that captures compilation output for reporting.

Callers 11

generateClassMethod · 0.95
resolveFileMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
getJMXConnectionMethod · 0.80
getPropertyMethod · 0.80
setPropertyMethod · 0.80
getJMXConnectionMethod · 0.80
testIfConditionMethod · 0.80
testUnlessConditionMethod · 0.80

Calls 6

getPropertyMethod · 0.65
getCompilerMethod · 0.65
isTraceEnabledMethod · 0.65
traceMethod · 0.65
initMethod · 0.65
setPropertyMethod · 0.45

Tested by

no test coverage detected