phil swenson wrote: > > So I gather you just can't access resources in a jar file as a file. > If I could just get the resource as a string, I'd be good. Any > suggestions on being able to pull a resource to a string? >
The correct solution is to use ClassLoader.getResourceAsStream(). -- Peter Niederwieser Developer, Gradle http://www.gradle.org Trainer & Consultant, Gradleware http://www.gradleware.com Creator, Spock Framework http://spockframework.org -- View this message in context: http://gradle.1045684.n5.nabble.com/referencing-a-resource-in-gradle-tp4359379p4359579.html Sent from the gradle-user mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
