Sunday, November 20, 2011

Displaying Groovy Classpath

http://marxsoftware.blogspot.com/2010/01/viewing-groovy-applications-classpath.html
this.class.classLoader.rootLoader.URLs.each{ println it } 


http://blog.blindgaenger.net/print_groovys_classpath_for_debugging.html
def printClassPath(classLoader) {
  println "$classLoader"
  classLoader.getURLs().each {url->
     println "- ${url.toString()}"
  }
  if (classLoader.parent) {
     printClassPath(classLoader.parent)
  }
}
printClassPath this.class.classLoader