Examples of JarBuilder


Examples of com.iggroup.oss.restdoclet.plugin.io.JarBuilder

      LOG.debug("Creating properties: " + artifactId + ", " + version + ", "
         + finalName + ", " + classifier + ", " + scmUrl);
      cc.createProperties(artifactId, version, finalName, classifier, scmUrl);
      LOG.debug("Building jar: " + finalName + '-' + classifier);
      File jar = new JarBuilder(dirs, finalName + '-' + classifier).build();

      LOG.info("Deploying " + jar.getName());
      if (deployUrl != null && deployUrl.toLowerCase().startsWith("http")) {
         FileUploader.upload(deployUrl, deployDir, jar);
      }
View Full Code Here

Examples of org.ops4j.pax.exam.spi.war.JarBuilder

            return;
        }
       
        probeDir = new File(system.getTempFolder(), UUID.randomUUID().toString());
        probeDir.mkdir();
        JarBuilder builder = new JarBuilder(probeDir, probeOption);
        URI jar = builder.buildJar();
        try {
            URLClassLoader classLoader = new URLClassLoader(new URL[]{jar.toURL()});
            contextClassLoader = Thread.currentThread().getContextClassLoader();
            Thread.currentThread().setContextClassLoader(classLoader);
        }
View Full Code Here

Examples of org.voltdb.compiler.JarBuilder

            bytes.add(JarReader.readFileFromJarAtURL(jarFileName.getAbsolutePath(), file));
        }
       
        // Write everything from the old jar except the catalog to the same
        // 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));
            }
        }
       
        // 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

Examples of uk.co.gencoreoperative.fileutils.JarBuilder

    public File repackage(String className, Collection<JarFile> jars) {

        String name = RandomStringUtils.randomAlphabetic(10) + JarBuilder.JAR_EXTENSION;
        tracer.info("Target Jar: {0}", name);

        JarBuilder builder = JarBuilder.createJar(name).withCompression();
        // Repackage each Jar
        for (JarFile jar : jars) {
            tracer.info("Repackaging... {0}", jar.getName());
            repackageJar(jar, builder);
        }

        // Package the manifest
        tracer.info("Writing manifest...");
        String manifest = JarBuilder.createManifest().withMainClass(className).build();
        builder.withManifest(manifest);

        return builder.build();
    }
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.