We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5ac10d commit d616dcdCopy full SHA for d616dcd
1 file changed
utils/src/com/cloud/utils/script/Script.java
@@ -350,7 +350,12 @@ public static String findScript(String path, String script) {
350
* Look in WEB-INF/classes of the webapp
351
* URI workaround the URL encoding of url.getFile
352
*/
353
- url = Script.class.getClassLoader().getResource(path + script);
+ if (path.endsWith(File.separator)) {
354
+ url = Script.class.getClassLoader().getResource(path + script);
355
+ }
356
+ else {
357
+ url = Script.class.getClassLoader().getResource(path + File.separator + script);
358
359
s_logger.debug("Classpath resource: " + url);
360
if (url != null) {
361
try {
0 commit comments