Package org.eclipse.wst.server.core.internal

Examples of org.eclipse.wst.server.core.internal.RuntimeWorkingCopy


        values.put(property.getId(), value);
      }

      System.out.println("Creating server runtime...");

      final RuntimeWorkingCopy rwc = (RuntimeWorkingCopy) runtimeType.createRuntime(runtimeType.getName() + " GENERATED", monitor);
      if (!pf.containsKey("location"))
      {
        System.out.println("ERROR: no location property in properties file: " + propertiesFile);
        return;
      }
      rwc.setLocation(new Path(pf.getProperty("location")));
      rwc.setName(runtimeType.getName() + " GENERATED");
      rwc.setStub(false);
      final Iterator it = runtimeProperties.entrySet().iterator();
      while (it.hasNext())
      {
        final Map.Entry e = (Entry) it.next();
        rwc.setAttribute((String) e.getKey(), (String) e.getValue());
      }
      Map m = rwc.getAttribute("generic_server_instance_properties", (Map) null);
      m.put("key", "generic_server_instance_properties");
      m.putAll(runtimeProperties);
      rwc.setAttribute("generic_server_instance_properties", m);
      rwc.setAttribute("runtime-type-id", runtimeType.getId());
      rwc.setAttribute("server_definition_id", serverRuntime.getId());
      final IRuntime runtime = rwc.save(true, monitor);

      System.out.println("Server runtime created: " + runtime.getName());

      System.out.println("Creating server instance...");
View Full Code Here

TOP

Related Classes of org.eclipse.wst.server.core.internal.RuntimeWorkingCopy

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.