Skip to content

Instantly share code, notes, and snippets.

@fbricon
Created August 12, 2013 07:35
Show Gist options
  • Select an option

  • Save fbricon/6208849 to your computer and use it in GitHub Desktop.

Select an option

Save fbricon/6208849 to your computer and use it in GitHub Desktop.
for(Map.Entry<IServer, List<IModule>> entries : republishableServers.entrySet()) {
IServer server = entries.getKey();
if (server instanceof Server) {
List<IModule> modules = entries.getValue();
IModule[] mod = new IModule[modules.size()];
modules.toArray(mod);
((Server)server).setModulePublishState(mod, IServer.PUBLISH_STATE_INCREMENTAL);
}
//if (isEnabled && server.getServerState() == IServer.STATE_STARTED) {
//server.publish(IServer.PUBLISH_INCREMENTAL, new NullProgressMonitor());
//}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment