Examples of WGADeployment


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

      } catch (InterruptedException e) {
      }
     
      // get or create WGADeployment
      String wgaDistributionName = runtime.getWGADistributionName();
      WGADeployment wgaDeployment =  null;
      if (wgaDistributionName == null) {
        throw new IOException("No WGA distribution configured for runtime '" + runtime.getName() + "'.");
      } else {
        wgaDeployment = WGADesignerPlugin.getDefault().getWGADeploymentManager().getDeployment(wgaDistributionName);
      }
     
      if (wgaDeployment == null) {
        throw new IOException("WGADeployment '" + wgaDistributionName + "' for runtime '" + runtime.getName() + "' not found.");
      }
     
     
      Map<String,String> variables = new HashMap<String,String>();
          variables.put("workspace_loc", runtime.getProject().getWorkspace().getRoot().getLocation().toFile().getAbsolutePath());
          variables.put("project_loc", runtime.getProject().getLocation().toFile().getAbsolutePath());
      variables.put("wga_appbase", wgaDeployment.getWebappDir().getAbsolutePath());
      variables.put("wga_workdir", wgaDeployment.getWorkDir().getAbsolutePath());
      IPreferenceStore store = WGADesignerPlugin.getDefault().getPreferenceStore();
      variables.put("tomcat_server_port", Integer.toString(store.getInt(PreferenceConstants.TOMCAT_SERVER_PORT)));
      variables.put("tomcat_http_port", Integer.toString(store.getInt(PreferenceConstants.TOMCAT_HTTP_PORT)));
      variables.put("tomcat_redirect_port", Integer.toString(store.getInt(PreferenceConstants.TOMCAT_REDIRECT_PORT)));
     
View Full Code Here

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

 
  public WGADeployment getWgaDeployment() {
    String distValue =  _wgaRuntimeConfiguration.getWgaDistribution();
        Iterator<WGADeployment> deployments = populateWGADeployments().iterator();
        while (deployments.hasNext()) {
          WGADeployment deployment = deployments.next();
          if (deployment.getName().equals(distValue)) {
            return deployment;
          }
        }
        return null;
  }
View Full Code Here

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

      return false;
    }
   
      // check local and remote runtime version
        de.innovationgate.wga.common.beans.csconfig.v1.Version localWGAVersion =  null;
        WGADeployment deployment = WGADesignerPlugin.getDefault().getWGADeploymentManager().getDeployment(_runtime.getWGADistributionName());
        if (deployment != null) {
            localWGAVersion = deployment.getWGAVersion();
        }
   
        Version remoteWGAVersion = null;
        try {            
            remoteWGAVersion = server.getServices().getWGAVersion(server.getSession());
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.