final String baseDirPath = OBPropertiesProvider.getInstance().getOpenbravoProperties()
.getProperty("source.path");
try {
log.debug("Restarting tomcat with basedir " + baseDirPath);
final AntExecutor antExecutor = new AntExecutor(baseDirPath);
antExecutor.runTask("tomcat.restart");
} catch (final Exception e) {
e.printStackTrace(System.err);
throw new OBException(e);
}
}