Felix Hill created TINKERPOP-1683:
-------------------------------------

             Summary: AbstractHadoopGraphComputer on Windows
                 Key: TINKERPOP-1683
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1683
             Project: TinkerPop
          Issue Type: Bug
          Components: hadoop
    Affects Versions: 3.3.0
         Environment: Windows
            Reporter: Felix Hill
            Priority: Trivial


AbstractHadoopGraphComputer splits *HADOOP_GREMLIN_LIBS* in a wrong way if ; is 
the File.pathSeparator (on windows).
Here, the produced PATH_PATTERN splits a path at each character not at each 
seperator.

{code:title=AbstractHadoopGraphComputer.java|borderStyle=solid}
private final static Pattern PATH_PATTERN =
            Pattern.compile(File.pathSeparator.equals(":") ? "([^:]|://)+" : 
("[^" + File.pathSeparator + "]"));


final Matcher matcher = PATH_PATTERN.matcher(hadoopGremlinLibs);
                    while (matcher.find()) {
                        final String path = matcher.group();
}
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to