FileWriterUtil fw = new FileWriterUtil((String)env.get(ToolConstants.CFG_OUTPUTDIR));
return fw.isCollision(packageName, filename + ext);
}
protected Writer parseOutputName(String packageName, String filename, String ext) throws ToolException {
FileWriterUtil fw = null;
Writer writer = null;
fw = new FileWriterUtil((String)env.get(ToolConstants.CFG_OUTPUTDIR));
try {
writer = fw.getWriter(packageName, filename + ext);
} catch (IOException ioe) {
Message msg = new Message("FAIL_TO_WRITE_FILE", LOG, packageName + "." + filename + ext);
throw new ToolException(msg, ioe);
}