https://www.argeo.org/bugzilla/show_bug.cgi?id=134
git-svn-id: https://svn.argeo.org/commons/trunk@6160
4cfe0d0a-d680-48aa-b62c-
e0a02a3f76cc
/** Creates an URL from a location */
protected String locationToUrl(String baseUrl, String location) {
/** Creates an URL from a location */
protected String locationToUrl(String baseUrl, String location) {
- int extInd = location.lastIndexOf('.');
- String ext = null;
- if (extInd > 0)
- ext = location.substring(extInd);
-
- if (baseUrl.startsWith("reference:") && ".jar".equals(ext))
- return "file:" + location;
- else
- return baseUrl + location;
+ // int extInd = location.lastIndexOf('.');
+ // String ext = null;
+ // if (extInd > 0)
+ // ext = location.substring(extInd);
+ //
+ // if (baseUrl.startsWith("reference:") && ".jar".equals(ext))
+ // return "file:" + location;
+ // else
+ return baseUrl + location;
}
/** Transforms a relative path in a full system path. */
}
/** Transforms a relative path in a full system path. */