Skip to content

Commit

Permalink
[GR-48444] Fix getting the executable path for mu
Browse files Browse the repository at this point in the history
PullRequest: graal/15465
  • Loading branch information
eregon committed Sep 5, 2023
2 parents 06fa1e3 + bd971ff commit 4526368
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ static Arguments parseArguments(String... args) {

if (repoUrl == null) {
repoUrl = OptionProperties.getDefaultRepo();
} else if (!repoUrl.endsWith("/")) {
}
if (!repoUrl.endsWith("/")) {
repoUrl = repoUrl + "/";
}
if (outputDir == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,8 @@ public static String getExeName() {
public static String getDefaultOutputDir() {
if (RELATIVE_OUTPUT_DIR != null) {
if (ImageInfo.inImageRuntimeCode()) {
if (ProcessProperties.getArgumentVectorBlockSize() > 0) {
String progName = ProcessProperties.getArgumentVectorProgramName();
return Paths.get(progName).resolve("..").resolve(RELATIVE_OUTPUT_DIR).normalize().toString();
}
String progName = ProcessProperties.getExecutableName();
return Paths.get(progName).resolve("..").resolve(RELATIVE_OUTPUT_DIR).normalize().toString();
}
}
return "maven downloader output";
Expand Down

0 comments on commit 4526368

Please sign in to comment.