urls.add(new File
(clctxt.getRealPath("/")).getCanonicalFile().toURL());
URLClassLoader loader = new URLClassLoader
((URL[])(urls.toArray(new URL[urls.size()])));
clctxt.setClassLoader(loader);
CommandLineCompiler clc = new CommandLineCompiler(clctxt);
clc.compile();
targetClassName = null;
String thisServletName;
if ("".equals(clc.getPackageName())) {
thisServletName = clc.getClassName();
} else {
thisServletName = clc.getPackageName()
+ '.' + clc.getClassName();
}
if (servletout != null) {
servletout.write("\n\t<servlet>\n\t\t<servlet-name>");
servletout.write(thisServletName);
servletout.write("</servlet-name>\n\t\t<servlet-class>");