mirror of https://github.com/apache/jclouds.git
Merge branch 'feature/scriptbuilder-fixes' of https://github.com/ccustine/jclouds
* 'feature/scriptbuilder-fixes' of https://github.com/ccustine/jclouds: Fix for classloader issues in OSGi, web apps, etc.
This commit is contained in:
commit
b81156a1f3
|
@ -134,8 +134,8 @@ public class Utils {
|
||||||
|
|
||||||
public static String writeFunctionFromResource(String function, OsFamily family) {
|
public static String writeFunctionFromResource(String function, OsFamily family) {
|
||||||
try {
|
try {
|
||||||
return CharStreams.toString(Resources.newReaderSupplier(Resources.getResource(String
|
return CharStreams.toString(Resources.newReaderSupplier(Resources.getResource(Utils.class, String
|
||||||
.format("functions/%s.%s", function, ShellToken.SH.to(family))), Charsets.UTF_8));
|
.format("/functions/%s.%s", function, ShellToken.SH.to(family))), Charsets.UTF_8));
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new FunctionNotFoundException(function, family, e);
|
throw new FunctionNotFoundException(function, family, e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue