Package com.subhajit.build

Examples of com.subhajit.build.CombineJars


//    return allResources.keySet().size();
//  }

  public void generate(File targetFile, IProgress... progresses)
      throws IOException, ManifestException {
    new CombineJars()
        .createCombinedJar(null, files, targetFile, progresses);
  }
View Full Code Here


        saveManifest(manifestFile, manifest);

        // Create the jar.
        FileUtils.createZipFile(projectJarDir, projectJarFile);

        CombineJars combineJars = new CombineJars();
        List<File> jarFiles = new ArrayList<File>();
        jarFiles.add(projectJarFile);
        try {
          EclipseMetafile[] dependencies = CreateJarUtils
              .getProjectDependencies(eclipseProject, progress);
          for (EclipseMetafile metafile : dependencies) {
            if (metafile instanceof CompiledJar) {
              jarFiles.add(metafile.getFile());
            }
          }
          // Reverse jarFiles.
          Collections.reverse(jarFiles);
          File outputFile = getFatJarFile(eclipseProject);
          combineJars.createCombinedJar(mainClass, jarFiles
              .toArray(IConstants.ZERO_LENGTH_FILE_ARRAY),
              outputFile, null, progress);
          if (stripJars) {
            progress.increment(0,
                "Launching task to strip zip file");
View Full Code Here

TOP

Related Classes of com.subhajit.build.CombineJars

Copyright © 2018 www.massapicom. 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.