[Swift-commit] r7017 - trunk/src/org/griphyn/vdl/karajan/lib

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Tue Aug 27 20:49:45 CDT 2013


Author: hategan
Date: 2013-08-27 20:49:44 -0500 (Tue, 27 Aug 2013)
New Revision: 7017

Modified:
   trunk/src/org/griphyn/vdl/karajan/lib/AppStageins.java
   trunk/src/org/griphyn/vdl/karajan/lib/AppStageouts.java
Log:
use proper remote path name with provider staging

Modified: trunk/src/org/griphyn/vdl/karajan/lib/AppStageins.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/lib/AppStageins.java	2013-08-28 00:57:36 UTC (rev 7016)
+++ trunk/src/org/griphyn/vdl/karajan/lib/AppStageins.java	2013-08-28 01:49:44 UTC (rev 7017)
@@ -81,7 +81,7 @@
             }
             String path = file.getDirectory() == null ? 
                     file.getName() : file.getDirectory() + "/" + file.getName();
-            String relpath = path.startsWith("/") ? path.substring(1) : path;
+            String relpath = PathUtils.remotePathName(path);
             if (logger.isDebugEnabled()) {
                 logger.debug("will stage in: " + relpath + " via: " + protocol);
             }

Modified: trunk/src/org/griphyn/vdl/karajan/lib/AppStageouts.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/lib/AppStageouts.java	2013-08-28 00:57:36 UTC (rev 7016)
+++ trunk/src/org/griphyn/vdl/karajan/lib/AppStageouts.java	2013-08-28 01:49:44 UTC (rev 7017)
@@ -75,7 +75,7 @@
                 }
                 String path = file.getDirectory() == null ? file.getName() : file.getDirectory()
                         + "/" + file.getName();
-                String relpath = path.startsWith("/") ? path.substring(1) : path;
+                String relpath = PathUtils.remotePathName(path);
                 cr_stageout.append(stack, 
                     makeList(relpath,
                         AppStageins.localPath(cwd, protocol, path, file)));




More information about the Swift-commit mailing list