From a80521707286dde13beade308d8116461f847764 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Tue, 14 Nov 2017 10:34:25 +0000 Subject: [PATCH] Removed timestamp from output files in case of blackbox algorithms git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/statistical-algorithms-importer@158440 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../blackbox/GeneralPurposeScriptProducer.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 c6e2fa0..71e6c78 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" - + 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("#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("cat('Output Parameter:" + o.a + "'," + o.a + ",'\\n'" + ")" + System.lineSeparator());