"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/main/java/com/openkm/util/ImageUtils.java" between
OpenKM-document-management-system-6.3.10.tar.gz and OpenKM-document-management-system-6.3.11.tar.gz

About: OpenKM (Knowledge Management) is a document management system that allows easy management of documents, users, roles and finding your enterprise documents and records. Community version (source code).

ImageUtils.java  (OpenKM-document-management-system-6.3.10):ImageUtils.java  (OpenKM-document-management-system-6.3.11)
skipping to change at line 206 skipping to change at line 206
} catch (SecurityException e) { } catch (SecurityException e) {
throw new RuntimeException("Security exception executing command: " + cmd, e); throw new RuntimeException("Security exception executing command: " + cmd, e);
} catch (InterruptedException e) { } catch (InterruptedException e) {
throw new RuntimeException("Interrupted exception executi ng command: " + cmd, e); throw new RuntimeException("Interrupted exception executi ng command: " + cmd, e);
} catch (IOException e) { } catch (IOException e) {
throw new RuntimeException("IO exception executing comman d: " + cmd, e); throw new RuntimeException("IO exception executing comman d: " + cmd, e);
} catch (TemplateException e) { } catch (TemplateException e) {
throw new RuntimeException("Template exception", e); throw new RuntimeException("Template exception", e);
} }
} }
/**
* Execute ghostscript command
*/
public static void ghostscript(String input, String output, String params) {
log.debug("ghostscript({}, {}, {})", input, output, params);
String cmd = null;
if (params == null || params.isEmpty()) {
throw new RuntimeException("Ghostcript parameters are empty");
}
if (Config.SYSTEM_GHOSTSCRIPT.isEmpty()) {
throw new RuntimeException(Config.SYSTEM_GHOSTSCRIPT + " not configu
red");
}
try {
HashMap<String, Object> hm = new HashMap<>();
hm.put("fileIn", input);
hm.put("fileOut", output);
String tpl = Config.SYSTEM_GHOSTSCRIPT + " " + params;
cmd = TemplateUtils.replace("SYSTEM_GHOSTSCRIPT", tpl, hm);
ExecutionResult er = ExecutionUtils.runCmd(cmd);
if (er.getExitValue() != 0) {
throw new RuntimeException(er.getStderr());
}
} catch (SecurityException e) {
throw new RuntimeException("Security exception executing command: "
+ cmd, e);
} catch (InterruptedException e) {
throw new RuntimeException("Interrupted exception executing command:
" + cmd, e);
} catch (IOException e) {
throw new RuntimeException("IO exception executing command: " + cmd,
e);
} catch (TemplateException e) {
throw new RuntimeException("Template exception", e);
}
}
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 41 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)