You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sm...@apache.org on 2017/05/16 15:50:17 UTC
[28/50] [abbrv] airavata git commit: fixing bug in parentPath dir
fixing bug in parentPath dir
Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/7027f44b
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/7027f44b
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/7027f44b
Branch: refs/heads/registry-refactoring
Commit: 7027f44b08f2589747bc62141ea1bad2084c5e1c
Parents: 04abb1e
Author: scnakandala <su...@gmail.com>
Authored: Wed May 3 17:05:03 2017 -0400
Committer: scnakandala <su...@gmail.com>
Committed: Wed May 3 17:05:03 2017 -0400
----------------------------------------------------------------------
.../java/org/apache/airavata/gfac/impl/task/SCPDataStageTask.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/airavata/blob/7027f44b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/task/SCPDataStageTask.java
----------------------------------------------------------------------
diff --git a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/task/SCPDataStageTask.java b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/task/SCPDataStageTask.java
index e7451c4..138f4d9 100644
--- a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/task/SCPDataStageTask.java
+++ b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/task/SCPDataStageTask.java
@@ -159,8 +159,9 @@ public class SCPDataStageTask implements Task {
//Wildcard for file name. Has to find the correct name.
if(fileName.startsWith("*.")){
String destParentPath = (new File(destinationURI.getPath())).getParentFile().getPath();
+ String sourceParentPath = (new File(sourceURI.getPath())).getParentFile().getPath();
String temp = taskContext.getParentProcessContext().getDataMovementRemoteCluster()
- .getFileNameFromExtension(fileName.substring(2), destParentPath, sshSession);
+ .getFileNameFromExtension(fileName.substring(2), sourceParentPath, sshSession);
if(temp != null && temp != ""){
fileName = temp;
}