Esempio n. 1
0
  /**
   * Checks the property in configuration service and if missing there get it from default settings.
   *
   * @return the upload location.
   */
  static String getUploadLocation() {
    // check first in configuration it can be manually set
    // or by provisioning
    String uploadLocation =
        LoggingUtilsActivator.getConfigurationService().getString(UPLOAD_LOCATION_PROPETY);
    // if missing check default settings
    if (uploadLocation == null || uploadLocation.length() == 0) {
      uploadLocation =
          LoggingUtilsActivator.getResourceService().getSettingsString(UPLOAD_LOCATION_PROPETY);
    }

    return uploadLocation;
  }