handleError(name, problem.getSourceLineNumber(), -1, problem.getMessage());
}
} else {
ClassFile[] classFiles = result.getClassFiles();
for (int i = 0; i < classFiles.length; i++) {
ClassFile classFile = classFiles[i];
char[][] compoundName = classFile.getCompoundName();
StringBuffer className = new StringBuffer();
String sep = "";
for (int j = 0; j < compoundName.length; j++) {
if (j > 0) {
className.append(".");
}
className.append(compoundName[j]);
}
byte[] bytes = classFile.getBytes();
String outFile = destDir + "/" +
className.toString().replace('.', '/') + ".class";
FileOutputStream fout = new FileOutputStream(outFile);
BufferedOutputStream bos = new BufferedOutputStream(fout);
bos.write(bytes);