[
https://issues.apache.org/jira/browse/TINKERPOP-1683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16034308#comment-16034308
]
Felix Hill commented on TINKERPOP-1683:
---------------------------------------
The correct RegEx would be
\[^;\]*+*
instead of
\[^;\]
change PATH_PATTERN accordingly:
{code:title=AbstractHadoopGraphComputer.java|borderStyle=solid}
private final static Pattern PATH_PATTERN =
Pattern.compile(File.pathSeparator.equals(":") ? "([^:]|://)+" :
("[^" + File.pathSeparator + "]+"));
{code}
> 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
> Labels: RegEx
> Original Estimate: 0.25h
> Remaining Estimate: 0.25h
>
> 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)