Package org.cloudfoundry.ide.eclipse.server.core.internal

Examples of org.cloudfoundry.ide.eclipse.server.core.internal.RepublishModule


          IServerWorkingCopy wc = server.createWorkingCopy();
          wc = server.createWorkingCopy();
          IStatus status = wc.canModifyModules(add, null, null);
          if (status.getSeverity() != IStatus.ERROR) {
            CloudFoundryPlugin.getModuleCache().getData(wc.getOriginal())
                .tagForAutomaticRepublish(new RepublishModule(add[0], appModule.getDeploymentInfo()));

            // publish the module
            wc.modifyModules(add, null, monitor);
            wc.save(true, null);
            republished = true;
View Full Code Here


    // failed, but the deployment info is available through the republish
    // module

    IModule module = appModule.getLocalModule();

    RepublishModule repModule = CloudFoundryPlugin.getModuleCache().getData(server.getServerOriginal())
        .untagForAutomaticRepublish(module);

    if (repModule != null) {
      ApplicationDeploymentInfo republishDeploymentInfo = repModule.getDeploymentInfo();
      if (republishDeploymentInfo != null) {
        DeploymentInfoWorkingCopy copy = appModule.resolveDeploymentInfoWorkingCopy(monitor);
        copy.setInfo(republishDeploymentInfo);
        copy.save();
      }
View Full Code Here

TOP

Related Classes of org.cloudfoundry.ide.eclipse.server.core.internal.RepublishModule

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.