@Override protected void initInternal() throws LifecycleException { fileBase = new File(getBase(), getInternalPath()); checkType(fileBase); this.absoluteBase = normalize(fileBase.getAbsolutePath()); try { this.canonicalBase = fileBase.getCanonicalPath(); } catch (IOException e) { throw new IllegalArgumentException(e); } }
@Override public URL getBaseUrl() { try { return getFileBase().toURI().toURL(); } catch (MalformedURLException e) { return null; } }
protected AbstractFileResourceSet(String internalPath) { setInternalPath(internalPath); }
if (getRoot().getAllowLinking()) { return file; if (JrePlatform.IS_WINDOWS && isInvalidWindowsFilename(name)) { return null; String absPath = normalize(file.getAbsolutePath()); if (absoluteBase.length() > absPath.length()) { return null; canPath = normalize(canPath);
@Override protected void initInternal() throws LifecycleException { super.initInternal(); // Is this an exploded web application? if (getWebAppMount().equals("")) { // Look for a manifest File mf = file("META-INF/MANIFEST.MF", true); if (mf != null && mf.isFile()) { try (FileInputStream fis = new FileInputStream(mf)) { setManifest(new Manifest(fis)); } catch (IOException e) { log.warn(sm.getString("dirResourceSet.manifestFail", mf.getAbsolutePath()), e); } } } } }
if (getRoot().getAllowLinking()) { return file; if (JrePlatform.IS_WINDOWS && isInvalidWindowsFilename(name)) { return null; String absPath = normalize(file.getAbsolutePath()); if (absoluteBase.length() > absPath.length()) { return null; canPath = normalize(canPath);
@Override protected void initInternal() throws LifecycleException { super.initInternal(); // Is this an exploded web application? if (getWebAppMount().equals("")) { // Look for a manifest File mf = file("META-INF/MANIFEST.MF", true); if (mf != null && mf.isFile()) { try (FileInputStream fis = new FileInputStream(mf)) { setManifest(new Manifest(fis)); } catch (IOException e) { log.warn(sm.getString("dirResourceSet.manifestFail", mf.getAbsolutePath()), e); } } } } }
@Override protected void initInternal() throws LifecycleException { fileBase = new File(getBase(), getInternalPath()); checkType(fileBase); this.absoluteBase = normalize(fileBase.getAbsolutePath()); try { this.canonicalBase = fileBase.getCanonicalPath(); } catch (IOException e) { throw new IllegalArgumentException(e); } }
@Override public URL getBaseUrl() { try { return getFileBase().toURI().toURL(); } catch (MalformedURLException e) { return null; } }
protected AbstractFileResourceSet(String internalPath) { setInternalPath(internalPath); }
@Override protected void initInternal() throws LifecycleException { fileBase = new File(getBase(), getInternalPath()); checkType(fileBase); String absolutePath = fileBase.getAbsolutePath(); if (absolutePath.endsWith(".")) { absolutePath = absolutePath + '/'; } this.absoluteBase = normalize(absolutePath); try { this.canonicalBase = fileBase.getCanonicalPath(); } catch (IOException e) { throw new IllegalArgumentException(e); } }
@Override public URL getBaseUrl() { try { return getFileBase().toURI().toURL(); } catch (MalformedURLException e) { return null; } }
protected AbstractFileResourceSet(String internalPath) { setInternalPath(internalPath); }