tag:blogger.com,1999:blog-8445360611672796425.post7562532299184918726..comments2022-03-31T12:42:43.399-07:00Comments on Shared Knowlege, Keep It Handy: Find directory path of the current groovy scriptSpencer Hohttp://www.blogger.com/profile/09369332488381065382noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-8445360611672796425.post-10534655168314183872016-04-26T08:37:47.650-07:002016-04-26T08:37:47.650-07:00throws
Caught: java.net.MalformedURLException: un...throws <br />Caught: java.net.MalformedURLException: unknown protocol: c<br />java.net.MalformedURLException: unknown protocol: c<br />when any folder in the path has spaces<br />groovyhttps://www.blogger.com/profile/15889714688941365743noreply@blogger.comtag:blogger.com,1999:blog-8445360611672796425.post-63687766487807824482014-05-08T06:49:33.648-07:002014-05-08T06:49:33.648-07:00Thank you. Worked perfect in my config.groovy to ...Thank you. Worked perfect in my config.groovy to set grails.plugin.reveng.jdbcDriverJarPath.<br /><br />def my_dir = new File(getClass().protectionDomain.codeSource.location.path).parent<br />grails.plugin.reveng.jdbcDriverJarPath = "$my_dir/../lib/ojdbc6.jar"Anonymoushttps://www.blogger.com/profile/05599987876241399712noreply@blogger.com