Skip to content

Commit

Permalink
[Fix][Admin] Fix the situation where the "args" parameter is not pass…
Browse files Browse the repository at this point in the history
…ed, but "" appears during the build.
  • Loading branch information
Suger committed Dec 12, 2024
1 parent 4a2dfde commit 9d33531
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dinky-admin/src/main/java/org/dinky/utils/MavenUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ public static String getMavenCommandLineByMvn(
commandLine.add("-Dclassworlds.conf=" + StrUtil.wrap(mavenHome + "/bin/m2.conf", "\""));
commandLine.add("-s " + settingsPath);
commandLine.add("-f " + projectDir);
commandLine.add(StrUtil.wrap(StrUtil.replace(args, "\"", "\\*"), "\""));
if (StrUtil.isNotBlank(args)) {
commandLine.add(StrUtil.wrap(StrUtil.replace(args, "\"", "\\*"), "\""));
}
commandLine.add(StrUtil.join(" ", goals));
return StrUtil.join(" ", commandLine);
}
Expand Down

0 comments on commit 9d33531

Please sign in to comment.