So, it could be down to which classloader I am using. However, that's as
maybe, I need to restate, It works in ANT in two running environments. Why
should it not work in Gradle?

Because Ant != Gradle? ;)

Otherwise you are right on track. You are using the wrong classloader. The first bunch of urls belong to the classloader of the calling class, the main Gradle classloader. You want to use one that covers the urls of the source set. It's a common trap because of a poor classloader model that will hopefully get addressed in a future Gradle release.

There might be no way around it other than to adjust your code. As has been asked before: how do you get access to the classloader?

Cheers,

Marco

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to