Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix: BOBO-78

  • Loading branch information...
commit 2e7a674b39d03ba8e4bc82f20d38528c4bfafb2b 1 parent 956de4d
@javasoze authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 bobo-browse/src/com/browseengine/bobo/api/BoboIndexReader.java
View
6 bobo-browse/src/com/browseengine/bobo/api/BoboIndexReader.java
@@ -466,9 +466,9 @@ public Directory directory()
}
String absolutePath = file.getAbsolutePath();
- String partOne = absolutePath.substring(0, absolutePath.lastIndexOf("/"));
- String partTwo = URLEncoder.encode(absolutePath.substring(absolutePath.lastIndexOf("/") + 1), "UTF-8");
- absolutePath = partOne + "/" + partTwo;
+ String partOne = absolutePath.substring(0, absolutePath.lastIndexOf(File.separator ));
+ String partTwo = URLEncoder.encode(absolutePath.substring(absolutePath.lastIndexOf(File.separator ) + 1), "UTF-8");
+ absolutePath = partOne + File.separator + partTwo;
File springFile = new File(new File(absolutePath), SPRING_CONFIG);
appCtx.setConfigLocation("file:" + springFile.getAbsolutePath());
Please sign in to comment.
Something went wrong with that request. Please try again.