Examples of JarResource


Examples of aQute.bnd.osgi.JarResource

            postRelease(context, participants, false);
            displayErrors(context);
            return false;
        }

        JarResource jr = new JarResource(jar);
        InputStream is = new BufferedInputStream(jr.openInputStream());
        try {
            context.getProject().release(context.getReleaseRepository().getName(), jar.getName(), is);
        } finally {
            is.close();
        }
View Full Code Here

Examples of aQute.bnd.osgi.JarResource

      postRelease(context, participants, false);
      displayErrors(context);
      return false;
    }

    JarResource jr = new JarResource(jar);
    InputStream is = new BufferedInputStream(jr.openInputStream());
    try {
        context.getProject().release(context.getReleaseRepository().getName(), jar.getName(), is);
    } finally {
        is.close();
    }
View Full Code Here

Examples of httl.spi.loaders.resources.JarResource

      jarFile.close();
    }
  }
 
  public Resource doLoad(String name, Locale locale, String encoding, String path) throws IOException {
    return new JarResource(getEngine(), name, locale, encoding, getAndCheckFile());
  }
View Full Code Here

Examples of jetbrick.template.resource.JarResource

    }

    @Override
    public Resource load(String name) {
        String fileEntry = PathUtils.combinePathName(entryName, name, true);
        return new JarResource(name, jarFile, fileEntry, encoding);
    }
View Full Code Here

Examples of org.apache.devicemap.loader.resource.JarResource

public class LoaderFactory {

    public static Loader getLoader(LoaderOption option, String path) {
        switch (option) {
            case JAR: {
                return new DDRLoader(new JarResource(path));
            }
            case FOLDER: {
                return new DDRLoader(new FileResource(path));
            }
            case URL: {
View Full Code Here

Examples of org.apache.jasper.compiler.JarResource

    public URL getResource(String res) throws MalformedURLException {
        URL result = null;

        if (res.startsWith("/META-INF/")) {
            // This is a tag file packaged in a jar that is being compiled
            JarResource jarResource = tagFileJarUrls.get(res);
            if (jarResource == null) {
                jarResource = tagJarResource;
            }
            if (jarResource != null) {
                result = jarResource.getEntry(res.substring(1));
            } else {
                // May not be in a JAR in some IDE environments
                result = context.getResource(canonicalURI(res));
            }
        } else if (res.startsWith("jar:jndi:")) {
View Full Code Here

Examples of org.apache.jasper.compiler.JarResource

    public URL getResource(String res) throws MalformedURLException {
        URL result = null;

        if (res.startsWith("/META-INF/")) {
            // This is a tag file packaged in a jar that is being compiled
            JarResource jarResource = tagFileJarUrls.get(res);
            if (jarResource == null) {
                jarResource = tagJarResource;
            }
            if (jarResource != null) {
                result = jarResource.getEntry(res.substring(1));
            } else {
                // May not be in a JAR in some IDE environments
                result = context.getResource(canonicalURI(res));
            }
        } else if (res.startsWith("jar:jndi:")) {
View Full Code Here

Examples of org.apache.jasper.compiler.JarResource

    public URL getResource(String res) throws MalformedURLException {
        URL result = null;

        if (res.startsWith("/META-INF/")) {
            // This is a tag file packaged in a jar that is being compiled
            JarResource jarResource = tagFileJarUrls.get(res);
            if (jarResource == null) {
                jarResource = tagJarResource;
            }
            if (jarResource != null) {
                result = jarResource.getEntry(res.substring(1));
            } else {
                // May not be in a JAR in some IDE environments
                result = context.getResource(canonicalURI(res));
            }
        } else if (res.startsWith("jar:file:")) {
View Full Code Here

Examples of org.apache.jasper.compiler.JarResource

    public URL getResource(String res) throws MalformedURLException {
        URL result = null;

        if (res.startsWith("/META-INF/")) {
            // This is a tag file packaged in a jar that is being compiled
            JarResource jarResource = tagFileJarUrls.get(res);
            if (jarResource == null) {
                jarResource = tagJarResource;
            }
            if (jarResource != null) {
                result = jarResource.getEntry(res.substring(1));
            } else {
                // May not be in a JAR in some IDE environments
                result = context.getResource(canonicalURI(res));
            }
        } else if (res.startsWith("jar:file:")) {
View Full Code Here

Examples of org.apache.jasper.compiler.JarResource

    public URL getResource(String res) throws MalformedURLException {
        URL result = null;

        if (res.startsWith("/META-INF/")) {
            // This is a tag file packaged in a jar that is being compiled
            JarResource jarResource = tagFileJarUrls.get(res);
            if (jarResource == null) {
                jarResource = tagJarResource;
            }
            if (jarResource != null) {
                result = jarResource.getEntry(res.substring(1));
            } else {
                // May not be in a JAR in some IDE environments
                result = context.getResource(canonicalURI(res));
            }
        } else if (res.startsWith("jar:jndi:")) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.