File dest = getActualDestDir();
AntClassLoader al = null;
try {
//bind to a compiler
JspCompilerAdapter compiler =
JspCompilerAdapterFactory
.getCompiler(compilerName, this,
al = getProject().createClassLoader(compilerClasspath));
//if we are a webapp, hand off to the compiler, which had
//better handle it
if (webApp != null) {
doCompilation(compiler);
return;
}
// make sure that we've got a srcdir
if (src == null) {
throw new BuildException("srcdir attribute must be set!",
getLocation());
}
String [] list = src.list();
if (list.length == 0) {
throw new BuildException("srcdir attribute must be set!",
getLocation());
}
// if the compiler does its own dependency stuff, we just
// call it right now
if (compiler.implementsOwnDependencyChecking()) {
doCompilation(compiler);
return;
}
//the remainder of this method is only for compilers that
//need their dependency work done
JspMangler mangler = compiler.createMangler();
// scan source directories and dest directory to build up both copy
// lists and compile lists
resetFileLists();
int filecount = 0;