Package com.atlassian.bamboo.configuration

Examples of com.atlassian.bamboo.configuration.AdministrationConfiguration


      addFieldError(Constants.PLASTIC_CM_EXE_FIELD, "Connection test failed: " + ex.getMessage());
    }
  }

  public String doDefault() {
    AdministrationConfiguration administrationConfiguration = getAdministrationConfiguration();
    if(administrationConfiguration == null) {
      return "error";
    }

    String path = administrationConfiguration.getSystemProperty(Constants.PLASTIC_CM_EXE);
    if(path == null) {
      path = Constants.PLASTIC_DEFAULT_CM_EXE;
    }
    setCmExePath(path);
View Full Code Here


    return "input";
  }

  public String doExecute() {
    AdministrationConfiguration administrationConfiguration = getAdministrationConfiguration();
    if(administrationConfiguration == null) {
      return "error";
    }

    administrationConfiguration.setSystemProperty(Constants.PLASTIC_CM_EXE, cmExePath);
    this.administrationConfigurationManager.saveAdministrationConfiguration(administrationConfiguration);

    addActionMessage(getText("config.updated"));
    return "success";
  }
View Full Code Here

    EnviromentManager.getInstance().initialize(this);
  }

  @Override
    public String getCmExePath() throws PlasticException {
        final AdministrationConfiguration administrationConfiguration = ADMINISTRATION_CONFIGURATION_MANAGER.get().getAdministrationConfiguration();
        String cmExePath = administrationConfiguration.getSystemProperty(Constants.PLASTIC_CM_EXE);
    if (cmExePath == null) {
      cmExePath = Constants.PLASTIC_DEFAULT_CM_EXE;
    }

    return cmExePath;
View Full Code Here

TOP

Related Classes of com.atlassian.bamboo.configuration.AdministrationConfiguration

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.