check otherProperties.STORAGE_API_URL. Fallback to config defaults.
Refs: #3884
}
public static final Configuration config = GWT.create(Configuration.class);
- public static final String CONFIG_API_PATH = config.apiPath();
+ public static final String CONFIG_API_PATH = getFromOtherPropertiesOrDefaultString("STORAGE_API_URL", config.apiPath());
static {
LOG("CONFIG_API_PATH = ", CONFIG_API_PATH);
}
return null;
}
}
+ public static String getFromOtherPropertiesOrDefaultString(String key, String dflt) {
+ try {
+ return otherProperties.get(key);
+ }
+ catch(Exception e) {
+ return dflt;
+ }
+ }
public static final String OTHERPROPS_STORAGE_API_URL = getFromOtherPropertiesOrNull("STORAGE_API_URL");
public static final String OTHERPROPS_USER_CATALOGS_API_URL = getFromOtherPropertiesOrNull("USER_CATALOGS_API_URL");
static {