Package org.eclipse.wst.server.core

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


            if (module != null && shouldDeploy(module)) {
                modules.add(module);
            }
        }
        wc.modifyModules(modules.toArray(new IModule[modules.size()]), new IModule[0], monitor);
        wc.save(true, monitor);

        advance(monitor, 2);

        monitor.done();
    }
View Full Code Here


        String stringVersion = version != null ? version.toString() : null;

        IServerWorkingCopy wc = getServer().createWorkingCopy();
        wc.setAttribute(String.format(PROP_BUNDLE_VERSION_FORMAT, bundleSymbolicName), stringVersion);
        try {
            wc.save(false, monitor);
        } catch (CoreException e) {
            throw new RuntimeException(e);
        }
    }
}
View Full Code Here

        IServer server = (IServer) getTaskModel().getObject(TaskModel.TASK_SERVER);
        if (server instanceof IServerWorkingCopy) {
            IServerWorkingCopy wc = (IServerWorkingCopy) server;
            wc.setAttribute("auto-publish-time", 0);
            wc.save(true, monitor);
        }

    }

}
View Full Code Here

        wc.setAttribute(ISlingLaunchpadServer.PROP_CONTEXT_PATH, config.getContextPath());
        wc.setAttribute(ISlingLaunchpadServer.PROP_USERNAME, config.getUsername());
        wc.setAttribute(ISlingLaunchpadServer.PROP_PASSWORD, config.getPassword());
        wc.setAttribute("auto-publish-time", 0);

        server = wc.save(true, new NullProgressMonitor());
    }

    @Override
    protected void after() {
        try {
View Full Code Here

    IServerWorkingCopy workingCopy = serverType.createServer(
        httpServerName, null, runtime, mon);
    workingCopy.setName(httpServerName);
    workingCopy.setHost("localhost"); //$NON-NLS-1$

    return workingCopy.save(true, mon);
  }

  public IPath getWebContentsDir() {
    return getVirtualComponent().getRootFolder().getProjectRelativePath();
  }
View Full Code Here

        karafServerWorkingCopy.setPortNumber(model.getPortNumber());
        karafServerWorkingCopy.setUserName(model.getUserName());
        karafServerWorkingCopy.setPassword(model.getPassword());
        workingCopy.setRuntime(getRuntimeWorkingCopy());
        try {
          workingCopy.save(true, new NullProgressMonitor());
        } catch (CoreException ex) {
          Activator.getLogger().error(ex);
        }
      }
    }
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.