assertTrue("Failed to compile .java file to " + classFile.getAbsolutePath(), classFile
.exists());
}
private String[] getClassPath() {
Path cp = new Path();
cp.addSystemProperty("java.class.path");
cp.addContainer(javax.servlet.jsp.tagext.JspTag.class);
cp.addContainer(javax.servlet.jsp.jstl.core.LoopTag.class);
cp.addContainer(javax.servlet.http.HttpServlet.class);
cp.addContainer(org.apache.taglibs.standard.Version.class);
cp.addContainer(org.apache.jasper.JspC.class);
cp.addContainer(org.apache.jasper.compiler.Compiler.class);
cp.addContainer(org.apache.jasper.runtime.HttpJspBase.class);
cp.add(new File("target", "test-classes").getAbsolutePath());
cp.add(new File("target", "classes").getAbsolutePath());
return cp.toStringArray();
}