return parseOutputName(packageName, filename, ".java");
}
public File parseOutputName(String packageName, String filename, String ext) throws ToolException {
FileUtils.mkDir(new File(this.baseDir));
FileWriterUtil fw = new FileWriterUtil(this.baseDir);
try {
return fw.getFileToWrite(packageName, filename + ext);
} catch (IOException ioe) {
Message msg = new Message("FAIL_TO_WRITE_FILE", LOG, packageName + "." + filename + ext);
throw new ToolException(msg, ioe);
}
}