diff --git a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/blackbox/GeneralPurposeScriptProducer.java b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/blackbox/GeneralPurposeScriptProducer.java index f02db31..c6e2fa0 100644 --- a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/blackbox/GeneralPurposeScriptProducer.java +++ b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/blackbox/GeneralPurposeScriptProducer.java @@ -176,12 +176,12 @@ public class GeneralPurposeScriptProducer { for (Triple o : output) { sb.append(o.a + "<-\"" + o.b + "\"" + System.lineSeparator()); -/* sb.append("#fixed code to add some randomness to the output file name and save concurrent requests" + sb.append("#fixed code to add some randomness to the output file name and save concurrent requests" + System.lineSeparator()); sb.append(o.a + "<-paste(" + o.a + ",'_',Sys.time(),sep='')" + System.lineSeparator()); sb.append(o.a + "<-gsub(' ', '_', " + o.a + ")" + System.lineSeparator()); sb.append(o.a + "<-gsub(':', '_', " + o.a + ")" + System.lineSeparator()); - sb.append("file.rename('" + o.b + "'," + o.a + ")" + System.lineSeparator());*/ + sb.append("file.rename('" + o.b + "'," + o.a + ")" + System.lineSeparator()); sb.append("cat('Output Parameter:" + o.a + "'," + o.a + ",'\\n'" + ")" + System.lineSeparator());