Examples of WGADeployment


Examples of de.innovationgate.eclipse.wgadesigner.editors.helpers.WGADeployment

    private void updateWGADistributions(boolean fireDialogChanged) {
        _wgaDistributionItems = new HashMap<String, WGADeployment>();
        Iterator<WGADeployment> deployments = WGADesignerPlugin.getDefault().getWGADeploymentManager().getDeployments().iterator();
        while (deployments.hasNext()) {
            WGADeployment deployment = deployments.next();
            _wgaDistributionItems.put(deployment.toString(), deployment);
        }

        _comboWGADistribution.setItems(_wgaDistributionItems.keySet().toArray(new String[0]));

        // select default deployment
        List<String> items = Arrays.asList(_comboWGADistribution.getItems());
        WGADeployment defaultDeployment = WGADesignerPlugin.getDefault().getWGADeploymentManager().getDefaultDeployment();
        if (defaultDeployment != null) {
            _comboWGADistribution.select(items.indexOf(defaultDeployment.toString()));
        }
        else {
            _comboWGADistribution.select(0);
        }
View Full Code Here

Examples of de.innovationgate.eclipse.wgadesigner.editors.helpers.WGADeployment

            
          try {
            // select new created design in packages explorer, resource navigator & project explorer 
              if(template.getName().equals("empty")){
                  String wgaDistributionName = runtime.getConfiguration().getWgaDistribution();             
                            WGADeployment wgaDeployment = WGADesignerPlugin.getDefault().getWGADeploymentManager().getDeployment(wgaDistributionName);
                            WGADesignConfigurationModel configModel = helper.createModel();   
                            VersionCompliance vc = WGADesignStructureHelper.wgaVersionToVersionCompliance(wgaDeployment.getWGAVersion());
                            if(vc!=null){
                                configModel.setVersionCompliance(vc);
                                configModel.saveChanges();
                            }
             }
View Full Code Here

Examples of de.innovationgate.eclipse.wgadesigner.editors.helpers.WGADeployment

  }

  @Override
  public boolean performFinish() {
    final String runtimeName = _page.getRuntimeName();
    final WGADeployment deployment = _page.getWGADeployment();
    final List<String> selectedWorkingSets = _page.getSelectedWorkingSets();
    IRunnableWithProgress op = new IRunnableWithProgress() {
      public void run(IProgressMonitor monitor) throws InvocationTargetException {
        try {
          doFinish(runtimeName, deployment, monitor, selectedWorkingSets);
View Full Code Here

Examples of de.innovationgate.eclipse.wgadesigner.editors.helpers.WGADeployment

    }
  }

  public URL getRootURL() {
    try {
      WGADeployment deployment = WGADesignerPlugin.getDefault().getWGADeploymentManager().getDeployment(getWGADistributionName());
      if (deployment != null) {
        int port = WGADesignerPlugin.getDefault().getPreferenceStore().getInt(PreferenceConstants.TOMCAT_HTTP_PORT);
        return new URL("http://localhost:" + port + deployment.getContextPath());
      } else {
        return null;
      }
    } catch (MalformedURLException e) {
      return null;
View Full Code Here

Examples of de.innovationgate.eclipse.wgadesigner.editors.helpers.WGADeployment

  }

  public URL getVersionURL() {
    URL root = getRootURL();
    if (root != null) {
      WGADeployment deployment = WGADesignerPlugin.getDefault().getWGADeploymentManager().getDeployment(getWGADistributionName());
      try {
        if (deployment.getWGAVersion().isAtLeast(5, 0)) {
          return new URL(root.toString() + "/version.jsp");
        } else {
          return new URL(root.toString() + "/wgadmin.jsp");
        }
      } catch (Exception e) {
View Full Code Here

Examples of de.innovationgate.eclipse.wgadesigner.editors.helpers.WGADeployment

    vmArgs.add("-Dde.innovationgate.wga.devplugins=\"" + _developerPluginsRoot.getLocation().toFile().getAbsolutePath() + "\"");

    int segmentCount = _wgaBase.getLocation().matchingFirstSegments(_luceneRoot.getLocation());
    vmArgs.add("-D" + WGAConfiguration.SYSPROP_LUCENE_ROOT + "=\"" + _luceneRoot.getLocation().removeFirstSegments(segmentCount) + "\"");
    vmArgs.add("-Dde.innovationgate.wga.tmlscript.debug=\"" + Boolean.toString(store.getBoolean(PreferenceConstants.TMLSCRIPT_DEBUG)) + "\"");
    WGADeployment deployment = WGADesignerPlugin.getDefault().getWGADeploymentManager().getDeployment(getWGADistributionName());
    if (deployment != null) {
      vmArgs.add("-Dde.innovationgate.wga.defaultplugins=\"" + deployment.getDefaultPluginsDir().getAbsolutePath() + "\"");
    }

    vmArgs.add("-Dde.innovationgate.wga.skipLocalAdminLogins=true");
    vmArgs.add("-Dde.innovationgate.wga.outputWarningsOnConsole=true");

    // enable jmx - necessary for development mode check
    vmArgs.add("-Dcom.sun.management.jmxremote");
    vmArgs.add("-Dde.innovationgate.license.DevelopmentModeEnabled=true");

    if (deployment != null) {
      vmArgs.add("-Dde.innovationgate.license.WGAContextPath=\"" + deployment.getContextPath() + "\"");
    }

    if (_config.getJvmOptions() != null) {
      Iterator<String> options = WGUtils.deserializeCollection(_config.getJvmOptions(), "\n").iterator();
      while (options.hasNext()) {
View Full Code Here

Examples of de.innovationgate.eclipse.wgadesigner.editors.helpers.WGADeployment

         
          WGARuntime runtime = (WGARuntime) _project.getNature(WGADesignerPlugin.NATURE_WGA_RUNTIME);
         
          // set wga distribution
          WGADeploymentManager manager = WGADesignerPlugin.getDefault().getWGADeploymentManager();
          WGADeployment deployment = null;
          if (manager.hasDeployment(WGADeploymentManager.DEFAULT_DEPLOYMENT_NAME)) {
            deployment = manager.getDefaultDeployment();
          } else if (manager.getDeployments().size() > 0) {
            deployment = manager.getDeployments().get(0);
          }
          if (deployment != null) {
            runtime.getConfiguration().setWgaDistribution(deployment.getName());
          }
         
          runtime.flushConfig();
         
          // configure tomcat
View Full Code Here

Examples of de.innovationgate.eclipse.wgadesigner.editors.helpers.WGADeployment

    });
   
    _tableControl.getTable().addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
        if (_tableControl.getTable().getSelectionCount() > 0) {
          WGADeployment deployment = (WGADeployment) _tableControl.getTable().getSelection()[0].getData();
//          if (deployment.getName().equals(WGADesignerPlugin.getDefault().getWGADeploymentManager().getDefaultDeploymentName()) ||
//              WGADesignerPlugin.getDefault().getWGADeploymentManager().isProjectDeployment(deployment)) {
//            _tableControl.getButton(EditableTableControl.BUTTON_REMOVE).setEnabled(false);
//          } else {
//            _tableControl.getButton(EditableTableControl.BUTTON_REMOVE).setEnabled(true);
View Full Code Here

Examples of de.innovationgate.eclipse.wgadesigner.editors.helpers.WGADeployment

  @Override
  protected IProject[] build(int kind, Map args, IProgressMonitor monitor) throws CoreException {
    try {
      WGADeploymentManager manager = WGADesignerPlugin.getDefault().getWGADeploymentManager();
      WGADeployment deployment = manager.getDeployment(getProject().getName());
      if (deployment != null) {
        IResourceDelta delta = getDelta(getProject());
        if (delta != null) {
          if (WGADesignerPlugin.getDefault().isDebugging()) {
            System.out.println("Incremental update of WGA deployment '" + deployment.getName() + "'.");
          }
          deployment.updateWGA(delta, monitor);         
        } else {
          if (WGADesignerPlugin.getDefault().isDebugging()) {
            System.out.println("Full update of WGA deployment '" + deployment.getName() + "'.");
          }
          deployment.updateWGA(getProject(), monitor);
        }
      } else {       
        manager.createDeployment(getProject(), monitor);
      }
    } catch (Exception e) {
View Full Code Here

Examples of de.innovationgate.eclipse.wgadesigner.editors.helpers.WGADeployment

                                } else {
                                    wgaWar = WGADesignerPlugin.getDefault().downloadCurrentWGARelease(downloadMonitor);                                
                                }
                if (!monitor.isCanceled()) {
                  SubProgressMonitor deployMonitor = new SubProgressMonitor(monitor, 10);
                  WGADeployment deployment = WGADesignerPlugin.getDefault().getWGADeploymentManager().createDeployment(_addDialog.getSymbolicName(), wgaWar.getFile(), deployMonitor);
                  if (deployment != null && isCustomDownloadLocation) {
                      deployment.setUpdateURL(_addDialog.getLocation());
                  }
                }
              } catch (Exception e) {
                throw new InterruptedException(e.getMessage());
              } finally {
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.