You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sc...@apache.org on 2015/07/13 19:25:19 UTC

[25/42] airavata-php-gateway git commit: fixing unique directory not creation for experiment outputs

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/airavata-php-gateway-0.15-release
Commit: b031349fbdf9024979b15bd2dd3af7952b22e90e
Parents: ae46112
Author: Supun Nakandala <sc...@apache.org>
Authored: Thu Jun 25 16:36:51 2015 +0530
Committer: Supun Nakandala <sc...@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