Issue #1598 fix GridParamInfo keys.
Former-commit-id: 33da1c48a76b468b9fee4e05de835295c7393672
This commit is contained in:
parent
d123c044c3
commit
c1b8ceecf1
1 changed files with 2 additions and 2 deletions
|
@ -181,7 +181,7 @@ public class GridParamInfoLookup {
|
|||
try {
|
||||
GridParamInfo paramInfo = (GridParamInfo) um.unmarshal(file
|
||||
.getFile());
|
||||
String key = file.getName().replace(".xml", "");
|
||||
String key = file.getFile().getName().replace(".xml", "");
|
||||
if (!modelParamMap.containsKey(key)) {
|
||||
modelParamMap.put(key, paramInfo);
|
||||
}
|
||||
|
@ -196,7 +196,7 @@ public class GridParamInfoLookup {
|
|||
LocalizationLevel.SITE), "grib" + IPathManager.SEPARATOR
|
||||
+ "parameterInfo", new String[] { ".xml" }, true, true);
|
||||
for (LocalizationFile file : files) {
|
||||
String name = file.getName().replace(".xml", "");
|
||||
String name = file.getFile().getName().replace(".xml", "");
|
||||
// Do not override grid files.
|
||||
if (modelParamMap.get(name) != null) {
|
||||
continue;
|
||||
|
|
Loading…
Add table
Reference in a new issue