if (debug) {
logger.log(BasicLevel.DEBUG, "Removing the jmi file:"
+ jmiFile.getAbsolutePath());
}
if (jmiFile.exists() && !jmiFile.delete()) {
throw new SpeedoException(
"Impossible to remove the JMI file associated to the jdo file:"
+ xml.xmlFile);
}
for (int i = (enhancedClasses.size() - 1); i >= 0; i--) {
SpeedoClass sc = (SpeedoClass) enhancedClasses.get(i);
String baseName = StringReplace.replaceChar(
'.', File.separatorChar, sc.getFQName());
File classFile = new File(output, baseName + ".class");
if (debug) {
logger.log(BasicLevel.DEBUG, "Removing class files:" + classFile);
}
if (classFile.exists() && !classFile.delete()) {
throw new SpeedoException("Impossible to remove the file:"
+ classFile.getAbsolutePath());
}
}
} else {
if (xmlsToRemove == null) {