[
https://issues.apache.org/jira/browse/RYA-447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16332413#comment-16332413
]
ASF GitHub Bot commented on RYA-447:
------------------------------------
Github user ejwhite922 commented on the issue:
https://github.com/apache/incubator-rya/pull/264
@kchilton2 @pujav65
Both the test and shell command fail in Windows since it will return a path
for rootedFile without file separators. Another option is we could set the
path back to its native file separators after the regex replacements are done.
final String userHome =
FilenameUtils.separatorsToUnix(System.getProperty("user.home"));
final Path rootedFile = Paths.get(
FilenameUtils.separatorsToSystem(file.replaceFirst("^~", userHome)) );
> Rya Shell Windows user.home error
> ---------------------------------
>
> Key: RYA-447
> URL: https://issues.apache.org/jira/browse/RYA-447
> Project: Rya
> Issue Type: Bug
> Components: clients
> Affects Versions: 3.2.12
> Environment: Windows build
> Reporter: Eric White
> Assignee: Eric White
> Priority: Major
> Fix For: 3.2.12
>
>
> When building rya.shell under Windows, loading tests fail due to malformed
> user.home paths. It appears that Windows file separators ('\') are causing
> problems when being used as part of a regex replacement operation since
> they're not being escaped.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)