()
| 159 | } |
| 160 | |
| 161 | @Override |
| 162 | public URL getRootDirURL() { |
| 163 | // System.out.println("url of "+fileName+" is "+url.toString()); |
| 164 | String parent = Misc.stripLastPathElement(url.toString()); |
| 165 | if ( parent.endsWith(".jar!") ) { |
| 166 | parent = parent+"/."; // whooops. at the root so add "current dir" after jar spec |
| 167 | } |
| 168 | try { |
| 169 | URL parentURL = new URL(parent); |
| 170 | // System.out.println("parent URL "+parentURL.toString()); |
| 171 | return parentURL; |
| 172 | } |
| 173 | catch (MalformedURLException mue) { |
| 174 | errMgr.runTimeError(null, null, ErrorType.INVALID_TEMPLATE_NAME, mue, parent); |
| 175 | } |
| 176 | return null; |
| 177 | } |
| 178 | } |
nothing calls this directly
no test coverage detected