// TODO calculate checksums?
super.execute();
}
private void writeModuleInfo() throws IOException, JAXBException {
ModuleInfo mi = new ModuleInfo(name, majorVersion, minorVersion,
miniVersion, moduleDescription);
File moduleInfoFile;
if (buildDir == null) {
moduleInfoFile = File.createTempFile("moduleInfo", "xml");
moduleInfoFile.deleteOnExit();
} else {
moduleInfoFile = new File(buildDir, "moduleInfo.xml");
}
if (overwrite || !compareModuleInfo(mi, moduleInfoFile)) {
log("Rewriting moduleInfo file", Project.MSG_VERBOSE);
FileWriter writer = new FileWriter(moduleInfoFile);
mi.encode(writer);
writer.close();
}
ZipFileSet zfs = new ZipFileSet();
zfs.setFile(moduleInfoFile);