Skip to content

Commit aa29c45

Browse files
committed
more separator problems
1 parent 22a434c commit aa29c45

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/g2html/Result.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,13 @@ public static void copyFile( File from, File to ) throws IOException {
8585

8686
// copy a file either form the jar or from a special resources directory
8787
public static void copyResource(String f, File to) throws IOException {
88+
String basePath = File.separator + "resources" + File.separator;
8889
try {
8990
/* try jar first ... */
90-
copyFromJar("/resources/" + f, to);
91+
copyFromJar(basePath + f, to);
9192
} catch (IOException e){
9293
/* .. no? This means that we are debugging in an IDE? */
93-
copyFile(new File("../resources/"+f), to);
94+
copyFile(new File(".."+basePath+f), to);
9495
}
9596
}
9697

0 commit comments

Comments
 (0)