Package org.voltdb.compiler

Examples of org.voltdb.compiler.JarBuilder.addEntry()


        // file with JarBuilder.
        JarBuilder builder = new JarBuilder(null);
        for (int i = 0; i < files.size(); ++i) {
            String file = files.get(i);
            if (file.equals(CatalogUtil.CATALOG_FILENAME)) {
                builder.addEntry(CatalogUtil.CATALOG_FILENAME,
                                 catalog.serialize().getBytes());
            }
            else {
                builder.addEntry(file, bytes.get(i));
            }
View Full Code Here


            if (file.equals(CatalogUtil.CATALOG_FILENAME)) {
                builder.addEntry(CatalogUtil.CATALOG_FILENAME,
                                 catalog.serialize().getBytes());
            }
            else {
                builder.addEntry(file, bytes.get(i));
            }
        }
       
        // Add any additions that they want to the root of the the jar structure
        for (File f : additions) {
View Full Code Here

        }
       
        // Add any additions that they want to the root of the the jar structure
        for (File f : additions) {
            if (f != null) {
                builder.addEntry(f.getName(), FileUtil.readBytesFromFile(f.getAbsolutePath()));
            }
        } // FOR
       
        builder.writeJarToDisk(jarFileName.getAbsolutePath());
    }
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.