Message-ID: <2013669686.50376.1414827692923.JavaMail.firstname.lastname@example.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_50375_8169521.1414827692922" ------=_Part_50375_8169521.1414827692922 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
The below code searches through the classpath of a groovy script or a ru= nning groovy application and prints out classes which match the given regul= ar expression. This is useful when you hit some variation of JAR hell and want to figure out which files contribut= e a specific class to your groovy classpath, be it a standalone script, a c= ompiled joint java/groovy project, a grails project or something else. = ;
Credits for the recursive classpath code go to 'blindgaenger' at: &= nbsp;
The code has been modified to do a regex search as per below.
To try this out, paste the above code into 'test.groovy' and execute as = follows:
Author: Matias Bjarland, Iteego Inc