ByteArrayOutputStream out = new ByteArrayOutputStream (256);
try {
jspCompilerPlugin=Class.
forName("org.apache.jasper.compiler.JikesJavaCompiler");
JavaCompiler javaC=createJavaCompiler( jspCompilerPlugin );
prepareCompiler( req, javaC, options, ctxt );
javaC.setMsgOutput(out);
status = javaC.compile(javaFileName);
} catch( Exception ex ) {
log.log("Guess java compiler: no jikes " + ex.toString());
status=false;
}
if( status==false ) {
log.log("Guess java compiler: no jikes ");
log.log("Guess java compiler: OUT " + out.toString());
jspCompilerPlugin=null;
tryJikes=false;
} else {
log.log("Guess java compiler: using jikes ");
}
}
JavaCompiler javaC=createJavaCompiler( jspCompilerPlugin );
prepareCompiler( req, javaC, options, ctxt );
ByteArrayOutputStream out = new ByteArrayOutputStream (256);
javaC.setMsgOutput(out);
status = javaC.compile(javaFileName);
if (!ctxt.keepGenerated()) {
File javaFile = new File(javaFileName);
javaFile.delete();
}