Lou DeGenaro created UIMA-3498:
----------------------------------
Summary: DUCC webserver (WS) improved use of /bin/cat
Key: UIMA-3498
URL: https://issues.apache.org/jira/browse/UIMA-3498
Project: UIMA
Issue Type: Improvement
Components: DUCC
Reporter: Lou DeGenaro
Assignee: Lou DeGenaro
Priority: Minor
Fix For: 2.0-Ducc
In AlienFile.java, follow the recipe provided by Burn below:
// Run process and log all output
ProcessBuilder pb = new ProcessBuilder(args);
pb.redirectErrorStream(true);
Process p = pb.start();
BufferedReader in = new BufferedReader(new
InputStreamReader(p.getInputStream()));
String line = in.readLine();
while (line != null) {
if (outStream == null) {
logger.log(Level.INFO, "[" + id + "] " + line);
} else {
outStream.println(line);
}
line = in.readLine();
}
in.close();
if (outStream != null) {
outStream.close();
}
rc = p.waitFor();
if (rc != 0 && outStream != null) {
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)