Package org.eclipse.wst.server.core

Examples of org.eclipse.wst.server.core.IRuntimeWorkingCopy.save()


    if (path != null) {
      wc.setLocation(path);
    }

    runtime = wc.save(true, new SubProgressMonitor(monitor, 1));

    return runtime;
  }

  private IServer createServer(IServerType st, IRuntime runtime, IProgressMonitor monitor, IOverwriteQuery query,
View Full Code Here


            throw new IllegalArgumentException("No runtime of type 'org.apache.sling.ide.launchpadRuntimeType' found");
        }

        IRuntimeWorkingCopy rtwc = launchpadRuntime.createRuntime("temp.sling.launchpad.rt.id",
                new NullProgressMonitor());
        rtwc.save(true, new NullProgressMonitor());

        IServerType serverType = null;
        for (IServerType type : ServerCore.getServerTypes()) {
            if ("org.apache.sling.ide.launchpadServer".equals(type.getId())) {
                serverType = type;
View Full Code Here

        .findRuntimeType("org.eclipse.wst.server.preview.runtime"); //$NON-NLS-1$

    IRuntimeWorkingCopy runtimeCopy = runtimeType.createRuntime(
        "HTTP Preview", mon); //$NON-NLS-1$

    IRuntime runtime = runtimeCopy.save(true, mon);

    IServerType serverType = ServerCore
        .findServerType("org.eclipse.wst.server.preview.server"); //$NON-NLS-1$

    IServerWorkingCopy workingCopy = serverType.createServer(
View Full Code Here

      IPath locPath = new Path(loc.getAbsolutePath());
      IRuntimeWorkingCopy rt = rtType.createRuntime(runtimeName, new NullProgressMonitor());
      rt.setLocation(locPath);
      rt.setName(runtimeName);
      // We don't need to set a vm, it can use default
      rt.save(true, new NullProgressMonitor());
      // TODO create the server also
    } catch(CoreException ce) {
      Activator.getLogger().error(ce);
    }
  }
View Full Code Here

        IPath path = new Path(installDir);
        workingCopy.setLocation(path);
      }
    }
    try {
      workingCopy.save(true, new NullProgressMonitor());
    } catch (CoreException e) {
      Activator.getLogger().error(e);
    }
  }
View Full Code Here

      IPath locPath = new Path(loc.getAbsolutePath());
      IRuntimeWorkingCopy rt = rtType.createRuntime(runtimeName, new NullProgressMonitor());
      rt.setLocation(locPath);
      rt.setName(runtimeName);
      // We don't need to set a vm, it can use default
      rt.save(true, new NullProgressMonitor());
      // TODO create the server also
    } catch(CoreException ce) {
      Activator.getLogger().error(ce);
    }
  }
View Full Code Here

      IPath locPath = new Path(loc.getAbsolutePath());
      IRuntimeWorkingCopy rt = rtType.createRuntime(runtimeName, new NullProgressMonitor());
      rt.setLocation(locPath);
      rt.setName(runtimeName);
      // We don't need to set a vm, it can use default
      rt.save(true, new NullProgressMonitor());
     
     
      // TODO create the server also
    } catch(CoreException ce) {
      Activator.getLogger().error(ce);
View Full Code Here

      IPath locPath = new Path(loc.getAbsolutePath());
      IRuntimeWorkingCopy rt = rtType.createRuntime(runtimeName, new NullProgressMonitor());
      rt.setLocation(locPath);
      rt.setName(runtimeName);
      // We don't need to set a vm, it can use default
      rt.save(true, new NullProgressMonitor());
      // TODO create the server also
    } catch(CoreException ce) {
      Activator.getLogger().error(ce);
    }
  }
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.