airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lah...@apache.org
Subject git commit: fixing https://issues.apache.org/jira/browse/AIRAVATA-1421
Date Fri, 29 Aug 2014 13:03:37 GMT
Repository: airavata
Updated Branches:
  refs/heads/master 4adcce986 -> ce09a50e2


fixing https://issues.apache.org/jira/browse/AIRAVATA-1421


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/ce09a50e
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/ce09a50e
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/ce09a50e

Branch: refs/heads/master
Commit: ce09a50e2ddd817cbe3b2d6081e2c99de2a5e5b7
Parents: 4adcce9
Author: lahiru <lahiru@apache.org>
Authored: Fri Aug 29 18:33:27 2014 +0530
Committer: lahiru <lahiru@apache.org>
Committed: Fri Aug 29 18:33:27 2014 +0530

----------------------------------------------------------------------
 .../gfac/core/handler/AppDescriptorCheckHandler.java         | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/ce09a50e/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/handler/AppDescriptorCheckHandler.java
----------------------------------------------------------------------
diff --git a/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/handler/AppDescriptorCheckHandler.java
b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/handler/AppDescriptorCheckHandler.java
index 7bb8cd2..33c32d3 100644
--- a/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/handler/AppDescriptorCheckHandler.java
+++ b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/handler/AppDescriptorCheckHandler.java
@@ -30,9 +30,7 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 import java.io.File;
-import java.util.Date;
 import java.util.Properties;
-import java.util.UUID;
 
 public class AppDescriptorCheckHandler implements GFacRecoverableHandler {
     private static final Logger logger = LoggerFactory.getLogger(AppDescriptorCheckHandler.class);
@@ -55,12 +53,8 @@ public class AppDescriptorCheckHandler implements GFacRecoverableHandler
{
         * Working dir
         */
         if (appDesc.getStaticWorkingDirectory() == null || "null".equals(appDesc.getStaticWorkingDirectory()))
{
-            String date = new Date().toString();
-            date = date.replaceAll(" ", "_");
-            date = date.replaceAll(":", "_");
-
             String tmpDir = appDesc.getScratchWorkingDirectory() + File.separator
-                    + jobExecutionContext.getServiceName() + "_" + date + "_" + UUID.randomUUID();
+                    + jobExecutionContext.getExperimentID();
 
             appDesc.setStaticWorkingDirectory(tmpDir);
         }


Mime
View raw message