mirror of
https://github.com/apache/jclouds.git
synced 2025-02-16 06:56:45 +00:00
Fix for classloader issues in OSGi, web apps, etc.
This commit is contained in:
parent
35291abba4
commit
cfb74ffcc1
@ -134,8 +134,8 @@ public class Utils {
|
||||
|
||||
public static String writeFunctionFromResource(String function, OsFamily family) {
|
||||
try {
|
||||
return CharStreams.toString(Resources.newReaderSupplier(Resources.getResource(String
|
||||
.format("functions/%s.%s", function, ShellToken.SH.to(family))), Charsets.UTF_8));
|
||||
return CharStreams.toString(Resources.newReaderSupplier(Resources.getResource(Utils.class, String
|
||||
.format("/functions/%s.%s", function, ShellToken.SH.to(family))), Charsets.UTF_8));
|
||||
} catch (IOException e) {
|
||||
throw new FunctionNotFoundException(function, family, e);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user