Package org.eclipse.jdt.ui.jarpackager

Examples of org.eclipse.jdt.ui.jarpackager.IJarExportRunnable


      public void run() {
        try {

          Shell shell = CloudUiUtil.getShell();

          IJarExportRunnable runnable = packageData
              .createJarExportRunnable(shell);
          try {
            runnable.run(subProgress);

            File file = new File(packageData.getJarLocation()
                .toString());
            if (!file.exists()) {
              handleApplicationDeploymentFailure();
View Full Code Here


          + resource.getName() + "_" + System.currentTimeMillis() + ".jar")
          .getAbsolutePath());
      jarrer.setJarLocation(path);

      jarrer.setElements(resource.getProject().members(IResource.FILE));
      IJarExportRunnable runnable = jarrer.createJarExportRunnable(null);
      runnable.run(monitor);
    } catch (Exception e) {
      e.printStackTrace();
      throw new RuntimeException(e);
    }
View Full Code Here

              .getName());
      File jarFile = File.createTempFile(prefix, ".jar", baseDir);
      jarrer.setJarLocation(new Path(jarFile.getAbsolutePath()));

      jarrer.setElements(resource.getProject().members(IResource.FILE));
      IJarExportRunnable runnable =
          jarrer.createJarExportRunnable(Display.getDefault()
              .getActiveShell());
      runnable.run(monitor);

      this.jarFile = jarFile;

    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here

      if (path.segmentCount() > 1)
      {
        jarPackage.setJarLocation(path.removeFirstSegments(path.segmentCount() - 1));
      }
      SysOutProgressMonitor.out.println("Exporting jar file using jar descriptor: " + jardesc.getFullPath() + " to: " + jarPackage.getAbsoluteJarLocation().toOSString());
      IJarExportRunnable export = jarPackage.createJarExportRunnable(null);
      export.run(monitor);
      SysOutProgressMonitor.out.println();
    }
  }
View Full Code Here

              .getName());
      File jarFile = File.createTempFile(prefix, ".jar", baseDir);
      jarrer.setJarLocation(new Path(jarFile.getAbsolutePath()));

      jarrer.setElements(resource.getProject().members(IResource.FILE));
      IJarExportRunnable runnable =
          jarrer.createJarExportRunnable(Display.getDefault()
              .getActiveShell());
      runnable.run(monitor);

      this.jarFile = jarFile;

    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.ui.jarpackager.IJarExportRunnable

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.