renamePackages = Boolean.valueOf(System.getProperty("renamePackages"));
}
if (renamePackages && !project.getPackaging().equals("pom")) {
log("Renaming packages to '" + project.getGroupId() + "'...");
RenamePackages renamePackagesTool = new RenamePackages(project.getGroupId());
if (project.hasParent()) {
if (project.getPackaging().equals("jar")) {
renamePackagesTool.setBaseDir("core");
} else {
renamePackagesTool.setBaseDir("web");
}
}
renamePackagesTool.execute();
}
// todo: gather and add repositories from appfuse projects
// should work for now since most artifacts are in static.appfuse.org/repository