File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
vm/src/org.graalvm.maven.downloader/src/org/graalvm/maven/downloader Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,8 @@ static Arguments parseArguments(String... args) {
106106
107107 if (repoUrl == null ) {
108108 repoUrl = OptionProperties .getDefaultRepo ();
109- } else if (!repoUrl .endsWith ("/" )) {
109+ }
110+ if (!repoUrl .endsWith ("/" )) {
110111 repoUrl = repoUrl + "/" ;
111112 }
112113 if (outputDir == null ) {
Original file line number Diff line number Diff 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" ;
You can’t perform that action at this time.
0 commit comments