public static void compile(File inWebDir, File outWebDir,
WebBundleDescriptor wbd, String classpath,
ServerContext serverContext)
throws DeploymentException {
JspC jspc = new JspC();
if (classpath != null && classpath.length() >0) {
jspc.setClassPath(classpath);
}
// START SJSAS 6311155
String appName = wbd.getApplication().getName();
boolean delegate = true;
com.sun.enterprise.deployment.runtime.web.ClassLoader clBean =
wbd.getSunDescriptor().getClassLoader();
if (clBean != null) {
String value = clBean.getAttributeValue(
com.sun.enterprise.deployment.runtime.web.ClassLoader.DELEGATE);
delegate = ConfigBeansUtilities.toBoolean(value);
}
// so far, this is not segragated per web bundle, all web-bundles will get the
// same sysClassPath
String sysClassPath = ASClassLoaderUtil.getModuleClassPath(
serverContext.getDefaultHabitat(), appName, null);
jspc.setSystemClassPath(sysClassPath);
// END SJSAS 6311155
verify(inWebDir, outWebDir);
configureJspc(jspc, wbd);
jspc.setOutputDir(outWebDir.getAbsolutePath());
jspc.setUriroot(inWebDir.getAbsolutePath());
jspc.setCompile(true);
logger.info(startMessage);
try {
jspc.execute();
}
catch (Exception je) {
throw new DeploymentException("JSP Compilation Error: " + je, je);
}
finally {