> + }
> +
> + /**
> + * Get a string from a resource
> + *
> + * @param resourceName
> + * The name of the resource.
> + * @return The content of the resource
> + */
> + public String stringFromResource(String resourceName) {
> + try {
> + return
> Strings2.toStringAndClose(getClass().getResourceAsStream(resourceName));
> + } catch (IOException e) {
> + throw Throwables.propagate(e);
> + }
> + }
Done.
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/282/files/56c8b214ce51990e7709991bc55605190195b133#r67434766