diff --git a/utils/src/com/cloud/utils/script/Script.java b/utils/src/com/cloud/utils/script/Script.java index 0662e612607..feed76489d6 100755 --- a/utils/src/com/cloud/utils/script/Script.java +++ b/utils/src/com/cloud/utils/script/Script.java @@ -340,15 +340,18 @@ public class Script implements Callable { File file = null; if (url != null) { file = new File(url.getFile()); + s_logger.debug("Absolute path = " + file.getAbsolutePath()); return file.getAbsolutePath(); } - url = Script.class.getClassLoader().getResource(path); - if (url != null) { - file = new File(url.getFile()); - return file.getAbsolutePath(); - } - +/* url = Script.class.getClassLoader().getResource(path); + * s_logger.debug("Classpath resource: " + url); + * if (url != null) { + * file = new File(url.getFile()); + * s_logger.debug("Absolute path = " + file.getAbsolutePath()); + * return file.getAbsolutePath(); + * } + */ if (path.endsWith(File.separator)) { path = path.substring(0, path.lastIndexOf(File.separator)); }