airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sma...@apache.org
Subject [24/40] airavata-php-gateway git commit: fixing unique directory not creation for experiment outputs
Date Tue, 14 Jul 2015 16:38:29 GMT
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/476a075f
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/476a075f
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/476a075f

Branch: refs/heads/0.15-release-branch
Commit: 476a075f3df663152a17475aa572fd499a387840
Parents: 86542bc
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:36:51 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/476a075f/app/libraries/ExperimentUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/ExperimentUtilities.php b/app/libraries/ExperimentUtilities.php
index e0885b7..2343df0 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