Revision d2b953c5 src/gr/grnet/pithos/web/client/Pithos.java
b/src/gr/grnet/pithos/web/client/Pithos.java | ||
---|---|---|
93 | 93 |
} |
94 | 94 |
|
95 | 95 |
public static final Configuration config = GWT.create(Configuration.class); |
96 |
public static final String CONFIG_API_PATH = config.apiPath();
|
|
96 |
public static final String CONFIG_API_PATH = getFromOtherPropertiesOrDefaultString("STORAGE_API_URL", config.apiPath());
|
|
97 | 97 |
static { |
98 | 98 |
LOG("CONFIG_API_PATH = ", CONFIG_API_PATH); |
99 | 99 |
} |
... | ... | |
108 | 108 |
return null; |
109 | 109 |
} |
110 | 110 |
} |
111 |
public static String getFromOtherPropertiesOrDefaultString(String key, String dflt) { |
|
112 |
try { |
|
113 |
return otherProperties.get(key); |
|
114 |
} |
|
115 |
catch(Exception e) { |
|
116 |
return dflt; |
|
117 |
} |
|
118 |
} |
|
111 | 119 |
public static final String OTHERPROPS_STORAGE_API_URL = getFromOtherPropertiesOrNull("STORAGE_API_URL"); |
112 | 120 |
public static final String OTHERPROPS_USER_CATALOGS_API_URL = getFromOtherPropertiesOrNull("USER_CATALOGS_API_URL"); |
113 | 121 |
static { |
Also available in: Unified diff