[jsword-devel] Resource

Keith Ralston jsword-devel@bibletechnologieswg.org
Sun, 11 Aug 2002 17:52:14 -0500


In Resource:

426        //Not a directory
427        String file = base.getFile();
428        //If the URL end with a "/", truncate it.
429        if (file.endsWith("/"))
430            file = file.substring(0, file.length()-1);
431        int lastslash = file.lastIndexOf("/");
432        if (lastslash == -1)  // No "/" in the String
433            file = ".";
434        else
435            file = file.substring(0, lastslash);

(I added the comments.)

On line 433, the URL is set to "."  Is this to set the base to the current
directory in Unix?  When I am running the application in Windows, the test
for "/" fails.  This seems to be the main hang up for me.