Skip to content

Commit bd971ff

Browse files
committed
[GR-48444] Fix getting the executable path for mu
* getArgumentVectorProgramName() is argv[0] and can be any value, notably it's just `mu` if called in $PATH.
1 parent 8be0512 commit bd971ff

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

vm/src/org.graalvm.maven.downloader/src/org/graalvm/maven/downloader/OptionProperties.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,8 @@ public static String getExeName() {
7575
public static String getDefaultOutputDir() {
7676
if (RELATIVE_OUTPUT_DIR != null) {
7777
if (ImageInfo.inImageRuntimeCode()) {
78-
if (ProcessProperties.getArgumentVectorBlockSize() > 0) {
79-
String progName = ProcessProperties.getArgumentVectorProgramName();
80-
return Paths.get(progName).resolve("..").resolve(RELATIVE_OUTPUT_DIR).normalize().toString();
81-
}
78+
String progName = ProcessProperties.getExecutableName();
79+
return Paths.get(progName).resolve("..").resolve(RELATIVE_OUTPUT_DIR).normalize().toString();
8280
}
8381
}
8482
return "maven downloader output";

0 commit comments

Comments
 (0)