workingDirname = workingDirname.substring( 0, workingDirname.length() - 2 );
}
+ if ( !workingDirname.startsWith( "/" ) )
+ {
+ workingDirname = "/" + workingDirname;
+ }
+
String path = "path/to/resource.xml";
String expectedPath = "file:" + workingDirname + "/" + path;
workingDirname = workingDirname.substring( 0, workingDirname.length() - 2 );
}
+ if ( !workingDirname.startsWith( "/" ) )
+ {
+ workingDirname = "/" + workingDirname;
+ }
+
String path = "path/to/resource.xml";
String expectedPath = "file:" + workingDirname + "/" + path;