tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ok...@apache.org
Subject incubator-tinkerpop git commit: added System.getProperty(file.separator)
Date Tue, 29 Mar 2016 14:46:50 GMT
Repository: incubator-tinkerpop
Updated Branches:
  refs/heads/TINKERPOP-1223 da791aa9b -> 79009e60d


added System.getProperty(file.separator)


Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/79009e60
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/79009e60
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/79009e60

Branch: refs/heads/TINKERPOP-1223
Commit: 79009e60d5f35cb4fc92801b23ccc1edec8662cf
Parents: da791aa
Author: Marko A. Rodriguez <okrammarko@gmail.com>
Authored: Tue Mar 29 08:46:42 2016 -0600
Committer: Marko A. Rodriguez <okrammarko@gmail.com>
Committed: Tue Mar 29 08:46:42 2016 -0600

----------------------------------------------------------------------
 .../hadoop/process/computer/AbstractHadoopGraphComputer.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/79009e60/hadoop-gremlin/src/main/java/org/apache/tinkerpop/gremlin/hadoop/process/computer/AbstractHadoopGraphComputer.java
----------------------------------------------------------------------
diff --git a/hadoop-gremlin/src/main/java/org/apache/tinkerpop/gremlin/hadoop/process/computer/AbstractHadoopGraphComputer.java
b/hadoop-gremlin/src/main/java/org/apache/tinkerpop/gremlin/hadoop/process/computer/AbstractHadoopGraphComputer.java
index 28dd7e5..a05a1be 100644
--- a/hadoop-gremlin/src/main/java/org/apache/tinkerpop/gremlin/hadoop/process/computer/AbstractHadoopGraphComputer.java
+++ b/hadoop-gremlin/src/main/java/org/apache/tinkerpop/gremlin/hadoop/process/computer/AbstractHadoopGraphComputer.java
@@ -210,13 +210,13 @@ public abstract class AbstractHadoopGraphComputer implements GraphComputer
{
             final String hadoopGremlinLibsRemote = "hadoop-gremlin-" + Gremlin.version()
+ "-libs";
             File file = new File(localDirectory);
             if ((Boolean.valueOf(System.getProperty("is.testing", "false")) || !file.exists())
&& fileSystem.exists(new Path(localDirectory)) && fileSystem.isDirectory(new
Path(localDirectory))) {
-                final File tempDirectory = new File(System.getProperty("java.io.tmpdir")
+ "/" + hadoopGremlinLibsRemote);
+                final File tempDirectory = new File(System.getProperty("java.io.tmpdir")
+ System.getProperty("file.separator") + hadoopGremlinLibsRemote);
                 if (!tempDirectory.exists()) assert tempDirectory.mkdirs();
-                final String tempPath = tempDirectory.getAbsolutePath() + "/" + new File(localDirectory).getName();
+                final String tempPath = tempDirectory.getAbsolutePath() + System.getProperty("file.separator")
+ new File(localDirectory).getName();
                 final RemoteIterator<LocatedFileStatus> files = fileSystem.listFiles(new
Path(localDirectory), false);
                 while (files.hasNext()) {
                     final LocatedFileStatus f = files.next();
-                    fileSystem.copyToLocalFile(f.getPath(), new Path(tempPath + "/" + f.getPath().getName()));
+                    fileSystem.copyToLocalFile(f.getPath(), new Path(tempPath + System.getProperty("file.separator")
+ f.getPath().getName()));
                 }
                 return new File(tempPath);
             } else


Mime
View raw message