From 4e0df541602cc22e240315af48bea5fdec93dfc9 Mon Sep 17 00:00:00 2001 From: Tara Drwenski Date: Tue, 17 Sep 2024 13:17:39 -0600 Subject: [PATCH] Use the AliasTranslator when getting the datascan location, so that tests with ${cdmUnitTest} variable have correct path for the radar server --- .../java/thredds/server/radarServer2/RadarServerConfig.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tds/src/main/java/thredds/server/radarServer2/RadarServerConfig.java b/tds/src/main/java/thredds/server/radarServer2/RadarServerConfig.java index 18be093e34..cd5559f8be 100644 --- a/tds/src/main/java/thredds/server/radarServer2/RadarServerConfig.java +++ b/tds/src/main/java/thredds/server/radarServer2/RadarServerConfig.java @@ -14,6 +14,8 @@ import ucar.nc2.units.DateRange; import ucar.nc2.units.DateType; import ucar.nc2.units.TimeDuration; +import ucar.nc2.util.AliasTranslator; + import java.io.File; import java.io.IOException; import java.net.URI; @@ -59,7 +61,7 @@ static public List readXML(String filename) { Element meta = dataset.getChild("metadata", catNS); conf.name = dataset.getAttributeValue("name"); conf.urlPath = dataset.getAttributeValue("path"); - conf.dataPath = getPath(dataset.getAttributeValue("location")); + conf.dataPath = getPath(AliasTranslator.translateAlias(dataset.getAttributeValue("location"))); conf.dataFormat = meta.getChild("dataFormat", catNS).getValue(); conf.stationFile = meta.getChild("stationFile", catNS).getAttributeValue("path"); conf.doc = meta.getChild("documentation", catNS).getValue();