Created
November 22, 2013 18:50
-
-
Save bdkosher/7604917 to your computer and use it in GitHub Desktop.
Show the classpath (stolen from http://blog.blindgaenger.net/print_groovys_classpath_for_debugging.html)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def printClassPath(classLoader) { | |
println "$classLoader" | |
classLoader.getURLs().each { url-> | |
println "- ${url.toString()}" | |
} | |
if (classLoader.parent) { | |
printClassPath(classLoader.parent) | |
} | |
} | |
printClassPath this.class.classLoader |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment