@Override public URL getRootDirURL() { //System.out.println("url of "+fileName+" is "+url.toString()); String parent = Misc.stripLastPathElement(url.toString()); try { return new URL(parent); } catch (MalformedURLException mue) { errMgr.runTimeError(null, null, ErrorType.INVALID_TEMPLATE_NAME, mue, parent); } return null; } }
@Override public URL getRootDirURL() { //System.out.println("url of "+fileName+" is "+url.toString()); String parent = Misc.stripLastPathElement(url.toString()); try { return new URL(parent); } catch (MalformedURLException mue) { errMgr.runTimeError(null, null, ErrorType.INVALID_TEMPLATE_NAME, mue, parent); } return null; } }
@Override public URL getRootDirURL() { //System.out.println("url of "+fileName+" is "+url.toString()); String parent = Misc.stripLastPathElement(url.toString()); try { return new URL(parent); } catch (MalformedURLException mue) { errMgr.runTimeError(null, null, ErrorType.INVALID_TEMPLATE_NAME, mue, parent); } return null; } }
@Override public URL getRootDirURL() { //System.out.println("url of "+fileName+" is "+url.toString()); String parent = Misc.stripLastPathElement(url.toString()); try { return new URL(parent); } catch (MalformedURLException mue) { errMgr.runTimeError(null, null, ErrorType.INVALID_TEMPLATE_NAME, mue, parent); } return null; } }
@Override public URL getRootDirURL() { // System.out.println("url of "+fileName+" is "+url.toString()); String parent = Misc.stripLastPathElement(url.toString()); if ( parent.endsWith(".jar!") ) { parent = parent + "/."; // whooops. at the root so add "current dir" after jar spec } try { URL parentURL = new URL(parent); // System.out.println("parent URL "+parentURL.toString()); return parentURL; } catch (MalformedURLException mue) { errMgr.runTimeError(null, null, ErrorType.INVALID_TEMPLATE_NAME, mue, parent); } return null; } }
@Override public URL getRootDirURL() { // System.out.println("url of "+fileName+" is "+url.toString()); String parent = Misc.stripLastPathElement(url.toString()); if ( parent.endsWith(".jar!") ) { parent = parent + "/."; // whooops. at the root so add "current dir" after jar spec } try { URL parentURL = new URL(parent); // System.out.println("parent URL "+parentURL.toString()); return parentURL; } catch (MalformedURLException mue) { errMgr.runTimeError(null, null, ErrorType.INVALID_TEMPLATE_NAME, mue, parent); } return null; } }
@Override public URL getRootDirURL() { // System.out.println("url of "+fileName+" is "+url.toString()); String parent = Misc.stripLastPathElement(url.toString()); if ( parent.endsWith(".jar!") ) { parent = parent + "/."; // whooops. at the root so add "current dir" after jar spec } try { URL parentURL = new URL(parent); // System.out.println("parent URL "+parentURL.toString()); return parentURL; } catch (MalformedURLException mue) { errMgr.runTimeError(null, null, ErrorType.INVALID_TEMPLATE_NAME, mue, parent); } return null; } }
@Override public URL getRootDirURL() { String parent = Misc.stripLastPathElement(url.toString()); try { return new URL(parent);