// by default, deploy all applicable modules - subclasses may decide otherwise
return true;
}
protected void publishModules(final List<IProject> createdProjects, IProgressMonitor monitor) throws CoreException {
IServer server = setupServerWizardPage.getOrCreateServer(monitor);
if (server == null) {
return;
}
if (setupServerWizardPage.getStartServer()) {
server.start(ILaunchManager.RUN_MODE, monitor);
}
List<IModule[]> modules = new ArrayList<IModule[]>();
for (IProject project : createdProjects) {
IModule module = ServerUtil.getModule(project);
if (module != null) {
modules.add(new IModule[] { module });
}
}
if (modules.size() > 0) {
server.publish(IServer.PUBLISH_CLEAN, modules, null, null);
}
}