Examples of ParseManifestCommand


Examples of org.eclipse.orion.server.cf.commands.ParseManifestCommand

      @Override
      protected IStatus performJob() {
        try {

          ParseManifestCommand parseManifestCommand = new ParseManifestCommand(null, userId, path);
          IStatus status = parseManifestCommand.doIt();
          if (!status.isOK())
            return status;

          ManifestParseTree manifest = parseManifestCommand.getManifest();
          Manifest resp = new Manifest(manifest);

          return new ServerStatus(Status.OK_STATUS, HttpServletResponse.SC_OK, resp.toJSON());

        } catch (Exception e) {
View Full Code Here

Examples of org.eclipse.orion.server.cf.commands.ParseManifestCommand

          if (!contentLocation.fetchInfo().isDirectory())
            contentLocation = contentLocation.getParent();

          /* check if the application has a manifest */
          ManifestParseTree manifest = null;
          ParseManifestCommand parseManifestCommand = new ParseManifestCommand(null, userId, contentPath.toString()); /* TODO: set target */
          parseManifestCommand.setApplicationAnalyzer(new ApplicationReconstructor());

          IStatus status = parseManifestCommand.doIt();
          if (status.isOK())
            manifest = parseManifestCommand.getManifest();

          IDeploymentService deploymentService = CFActivator.getDefault().getDeploymentService();
          List<Plan> plans = deploymentService.getDeploymentPlans(contentLocation, manifest);

          JSONArray children = new JSONArray();
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.