Examples of JarReader


Examples of org.hive.container.lib.JarReader

        jcl = new JarClassLoader();
        jcl.add(jarLocation);

        Document manifest = null;
        try {
            manifest = new JarReader().readXML(jarLocation, "manifest.xml");
        } catch (ParserConfigurationException e) {
            LoggerFactory.getLogger().fatal("Failed to initialize parser!", e);
        } catch (SAXException e) {
            LoggerFactory.getLogger().fatal("Failed to parse application manifest!", e);
        }
View Full Code Here

Examples of org.hive.container.lib.JarReader

        switch (type) {
            case APPLICATION_INTERFACE_XML: suffix = ".xml"; break;
            case APPLICATION_INTERFACE_HTML: suffix = ".html"; break;
        }

        return new JarReader().readFile(jarLocation, "interface/" + page + suffix);
    }
View Full Code Here

Examples of org.hive.container.lib.JarReader

    public Object getInstance() {
        return instance;
    }

    public String getTypes() {
        return new JarReader().readFile(jarLocation, "types.xsd");
    }
View Full Code Here

Examples of org.voltdb.utils.JarReader

     * @throws Exception (VoltCompilerException DNE?)
     */
    public static void updateCatalogInJar(File jarFileName, Catalog catalog, File...additions) throws Exception {
        catalog.serialize();
        // Read the old jar file into memory with JarReader.
        JarReader reader = new JarReader(jarFileName.getAbsolutePath());
        List<String> files = reader.getContentsFromJarfile();
        ArrayList<byte[]> bytes = new ArrayList<byte[]>();
        for (String file : files) {
            bytes.add(JarReader.readFileFromJarAtURL(jarFileName.getAbsolutePath(), file));
        }
       
View Full Code Here

Examples of org.voltdb.utils.JarReader

            }
           
            // HACK: Extract the ParameterMappings embedded in jar and write them to a temp file
            // This is terrible, confusing, and a total mess...
            // I have no one to blame but myself...
            JarReader reader = new JarReader(jar_file.getAbsolutePath());
            for (String file : reader.getContentsFromJarfile()) {
                if (file.endsWith(".mappings")) {
                    String contents = new String(JarReader.readFileFromJarAtURL(jar_file.getAbsolutePath(), file));
                    File copy = FileUtil.writeStringToTempFile(contents, "mappings", true);
                    this.params.put(PARAM_MAPPINGS, copy.toString());
                    break;
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.