airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject airavata-php-gateway git commit: fixing unique directory not creation for experiment outputs
Date Thu, 25 Jun 2015 11:08:09 GMT
Repository: airavata-php-gateway
Updated Branches:
  refs/heads/master ae4611273 -> b031349fb


fixing unique directory not creation for experiment outputs


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

Branch: refs/heads/master
Commit: b031349fbdf9024979b15bd2dd3af7952b22e90e
Parents: ae46112
Author: Supun Nakandala <scnakandala@apache.org>
Authored: Thu Jun 25 16:36:51 2015 +0530
Committer: Supun Nakandala <scnakandala@apache.org>
Committed: Thu Jun 25 16:37:45 2015 +0530

----------------------------------------------------------------------
 app/libraries/ExperimentUtilities.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/b031349f/app/libraries/ExperimentUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/ExperimentUtilities.php b/app/libraries/ExperimentUtilities.php
index 34d8ac9..871113a 100644
--- a/app/libraries/ExperimentUtilities.php
+++ b/app/libraries/ExperimentUtilities.php
@@ -163,7 +163,8 @@ class ExperimentUtilities
         $hostName = $_SERVER['SERVER_NAME'];
         $expPathConstant = 'file://' . $sshUser . '@' . $hostName . ':' . Config::get('pga_config.airavata')['experiment-data-absolute-path'];
 
-        $advHandling->outputDataDir = Config::get('pga_config.airavata')['experiment-data-absolute-path'];
+        $advHandling->outputDataDir = str_replace(Config::get('pga_config.airavata')['experiment-data-absolute-path'],
+            $expPathConstant, ExperimentUtilities::$experimentPath);
         $userConfigData->advanceOutputDataHandling = $advHandling;
 
         //TODO: replace constructor with a call to airvata to get a prepopulated experiment
template


Mime
View raw message