Hi Michael,
you could try this:

createTask('run', dependsOn: 'compile') {
    def classLoader = this.class.classLoader 
    classLaoder.rootLoader.addURL(new URL("file:///build/classes") ) 
    def whatTime = classLoader.loadClass("WhatTime") 
    def wt = whatTime.newInstance()
    ...
}

Kind Regards
Matthias

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

    http://xircles.codehaus.org/manage_email


Reply via email to