see https://source.jboss.org/cru/REV-JBIDE-4/#c80
private IStatus copyFile(InputStream in, String to) { try { FileUtils.writeTo(in, to); return Status.OK_STATUS; } catch (Exception e) { //Trace.trace(Trace.SEVERE, "Error copying file", e); return new Status(IStatus.ERROR, ServerPlugin.PLUGIN_ID, IEventCodes.JST_PUB_FAIL, NLS.bind(Messages.errorCopyingFile, new String[] {to, e.getLocalizedMessage()}), e); } finally { try { if (in != null) in.close(); } catch (Exception ex) { // ignore } } }
- blocks
-
JBIDE-9016 Review error handling code in as plugins
- Closed