Skip to content

Commit 31256c9

Browse files
author
Vladimir Kotal
committed
use path separator for project path
1 parent b231548 commit 31256c9

File tree

1 file changed

+1
-1
lines changed
  • opengrok-indexer/src/main/java/org/opengrok/indexer/index

1 file changed

+1
-1
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/index/Indexer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ public void prepareIndexer(RuntimeEnvironment env,
898898
// Add a project for each top-level directory in source root.
899899
for (File file : files) {
900900
String name = file.getName();
901-
String path = "/" + name;
901+
String path = File.separator + name;
902902
if (oldProjects.containsKey(name)) {
903903
// This is an existing object. Reuse the old project,
904904
// possibly with customizations, instead of creating a

0 commit comments

Comments
 (0)