Issue #1598 fix GridParamInfo keys.

Former-commit-id: 33da1c48a76b468b9fee4e05de835295c7393672
This commit is contained in:
Ben Steffensmeier 2013-02-19 14:06:26 -06:00
parent d123c044c3
commit c1b8ceecf1

View file

@ -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;