11package datadog .trace .api .civisibility .config ;
22
3- import datadog .environment .EnvironmentVariables ;
43import datadog .trace .api .Config ;
4+ import datadog .trace .config .inversion .ConfigHelper ;
55import datadog .trace .util .Strings ;
66import java .io .BufferedReader ;
77import java .io .IOException ;
@@ -226,7 +226,7 @@ private static Path resolveRlocation(String rlocation) {
226226 return directPath ;
227227 }
228228
229- String runfilesDir = EnvironmentVariables . get ("RUNFILES_DIR" );
229+ String runfilesDir = ConfigHelper . env ("RUNFILES_DIR" );
230230 if (Strings .isNotBlank (runfilesDir )) {
231231 Path candidate = Paths .get (runfilesDir , rlocation );
232232 if (Files .exists (candidate )) {
@@ -238,7 +238,7 @@ private static Path resolveRlocation(String rlocation) {
238238 }
239239 }
240240
241- String manifestFile = EnvironmentVariables . get ("RUNFILES_MANIFEST_FILE" );
241+ String manifestFile = ConfigHelper . env ("RUNFILES_MANIFEST_FILE" );
242242 if (Strings .isNotBlank (manifestFile )) {
243243 Path resolved = lookupInRunfilesManifest (Paths .get (manifestFile ), rlocation );
244244 if (resolved != null ) {
@@ -249,7 +249,7 @@ private static Path resolveRlocation(String rlocation) {
249249 }
250250 }
251251
252- String testSrcDir = EnvironmentVariables . get ("TEST_SRCDIR" );
252+ String testSrcDir = ConfigHelper . env ("TEST_SRCDIR" );
253253 if (Strings .isNotBlank (testSrcDir )) {
254254 Path candidate = Paths .get (testSrcDir , rlocation );
255255 if (Files .exists (candidate )) {
0 commit comments