List of usage examples for org.springframework.ide.eclipse.core SpringCore log
public static void log(String message, Throwable exception)
From source file:org.eclipse.virgo.ide.runtime.internal.core.ServerStatusPingThread.java
protected void ping() { try {//from w ww . j ava 2 s. c o m Thread.sleep(PING_DELAY); } catch (Exception e) { // ignore } while (!stop) { try { Boolean value = behaviour.getServerDeployer().ping(); if (!stop && value != null && value.booleanValue()) { // ping worked - server is up stop = true; behaviour.setServerStarted(); } else { sleep(); } } catch (IOException se) { sleep(); } catch (Exception e) { SpringCore.log("Server startup ping failed", e); // pinging failed if (!stop) { sleep(); } } } }
From source file:org.eclipse.virgo.ide.runtime.internal.core.DefaultServerDeployer.java
protected <T> T executeDeployerCommand(IServerCommand<T> serverCommand) { try {//from w w w .j a v a 2s.c o m return (T) serverCommand.execute(); } catch (IOException e) { SpringCore.log("Failed execution of deployer command " + serverCommand, e); } catch (TimeoutException e) { SpringCore.log("Failed execution of deployer command " + serverCommand, e); } return null; }