Thanks for the reply Philip, but this does neither work.
I think I wil give it up for now, since I spent the too much time for it.
I'll use an ordinary groovy script ...
Christoph
Philip Crotwell wrote:
>
> This may not be exactly what you want, but I use this to allow running
> a class in my project within the gradle build. Probably just need to
> add the oracle jar to this same classloader.
>
> def classLoader = new GroovyClassLoader(Project.class.classLoader)
> classLoader.addURL(new File('build/classes/main').toURL())
> configurations.default.each { File file ->
> classLoader.addURL(file.toURL())}
> def myCodeHere =
> classLoader.loadClass('com.example.MyClass').newInstance()
>
>
> Philip
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>
>
--
View this message in context:
http://www.nabble.com/using-jdbc-driver-in-a-task-fails-tp25752010p25764017.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