|  | 
| 5 | 5 | import java.io.IOException; | 
| 6 | 6 | import java.nio.charset.Charset; | 
| 7 | 7 | import java.nio.file.Files; | 
| 8 |  | -import java.nio.file.Path; | 
| 9 | 8 | import java.nio.file.Paths; | 
| 10 | 9 | import java.util.List; | 
| 11 | 10 | import java.util.Map; | 
| @@ -49,9 +48,7 @@ private static String[] extendFromFileArgs(String[] args) throws IOException { | 
| 49 | 48 |     if (workspace == null || workspace.trim().isEmpty()) | 
| 50 | 49 |       throw new IllegalArgumentException(RULES_SCALA_MAIN_WS_NAME + " is null or empty."); | 
| 51 | 50 | 
 | 
| 52 |  | - | 
| 53 |  | -    Path runnerArgsUnresolvedFileLocation = Paths.get(workspace + "/" + runnerArgsFileKey).normalize(); | 
| 54 |  | -    String runnerArgsFilePath = Runfiles.create().rlocation(runnerArgsUnresolvedFileLocation.toString()); | 
|  | 51 | +    String runnerArgsFilePath = Runfiles.create().rlocation(runnerArgsFileKey); | 
| 55 | 52 |     if (runnerArgsFilePath == null) | 
| 56 | 53 |       throw new IllegalArgumentException("rlocation value is null for key: " + runnerArgsFileKey); | 
| 57 | 54 | 
 | 
| @@ -92,9 +89,8 @@ private static void rlocateRunpathValue(String rulesWorkspace, List<String> runn | 
| 92 | 89 |     if (runpathFlag >= 0) { | 
| 93 | 90 |       String[] runpathElements = runnerArgs.get(runpathFlag + 1).split(File.pathSeparator); | 
| 94 | 91 |       Runfiles runfiles = Runfiles.create(); | 
| 95 |  | -      for (int i = 0; i < runpathElements.length; i++) { | 
| 96 |  | -        Path runPathElementPath = Paths.get(rulesWorkspace + "/" + runpathElements[i]).normalize(); | 
| 97 |  | -        runpathElements[i] = runfiles.rlocation(runPathElementPath.toString()); | 
|  | 92 | +      for (int i = 0; i < runpathElements.length; i++) {  | 
|  | 93 | +        runpathElements[i] = runfiles.rlocation(runpathElements[i].toString()); | 
| 98 | 94 |       } | 
| 99 | 95 |       String runpath = String.join(File.separator, runpathElements); | 
| 100 | 96 |       runnerArgs.set(runpathFlag + 1, runpath); | 
|  | 
0 commit comments