String urlStr = res.getURL().toString();\r
if (urlStr.charAt(urlStr.length() - 1) == '/')\r
urlStr = urlStr.substring(0, urlStr.length() - 2);\r
\r
String urlStr = res.getURL().toString();\r
if (urlStr.charAt(urlStr.length() - 1) == '/')\r
urlStr = urlStr.substring(0, urlStr.length() - 2);\r
\r
throw new SlcException("Cannot get parent for resource " + res, e);\r
}\r
}\r
\r
public static String extractRelativePath(Resource ancestor, Resource child) {\r
try {\r
throw new SlcException("Cannot get parent for resource " + res, e);\r
}\r
}\r
\r
public static String extractRelativePath(Resource ancestor, Resource child) {\r
try {\r
} catch (IOException e) {\r
throw new SlcException("Cannot extract relative path of " + child\r
+ " based on " + ancestor, e);\r
} catch (IOException e) {\r
throw new SlcException("Cannot extract relative path of " + child\r
+ " based on " + ancestor, e);\r