airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject [3/3] airavata git commit: fixing bug in parentPath dir
Date Wed, 03 May 2017 21:20:04 GMT
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/a76825ca
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/a76825ca
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/a76825ca

Branch: refs/heads/master
Commit: a76825caf5d89b836e2f9e049f295fd45766d6e5
Parents: 010b133
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Wed May 3 17:05:03 2017 -0400
Committer: scnakandala <supun.nakandala@gmail.com>
Committed: Wed May 3 17:19:34 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/a76825ca/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;
                 }


Mime
View raw message