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:
Adrian Cole 2011-03-12 14:30:50 -08:00
commit b81156a1f3
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}