* @see org.apache.tools.ant.Task#execute()
*/
@Override
public void execute() throws BuildException {
validateAttributes();
PBProject proj = null;
try {
proj = (projectFile != null) ? new PBProject(projectFile.getPath(), framework) : new PBProject(framework);
proj.setProjectName(name);
proj.setClasses(extractJavaFiles(src));
proj.setWoComponents(extractWOComponents(wocomponents));
proj.setWoAppResources(extractResources(resources, "**/*.eomodeld/index.eomodeld"));
proj.setWebServerResources(extractResources(wsresources, null));
extractFrameworks(proj);
proj.saveChanges();
// notify everybody
// PBProjectNotifications.postPBProjectDidUpgradeNotification(name);
} catch (Exception ioex) {
log("Error saving project file", Project.MSG_ERR);