phil swenson wrote:
> 
> I even tried this code as I thought that perhaps I needed a "/" in
> front of the resource
> 

As far as I know, resource names passed to
ClassLoader.getResource/getResourceAsStream shouldn't have a leading slash,
but need to be absolute. The situation is different for
Class.getResource/getResourceAsStream. The latter are convenience methods
built on top of the former.

--
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-tp4359379p4359589.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


Reply via email to