We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92c4510 commit 88fb8f4Copy full SHA for 88fb8f4
1 file changed
kotlin-plugin/src/main/kotlin/dev/elide/maven/plugin/kotlin/ArgumentParser.kt
@@ -38,7 +38,7 @@ object ArgumentParser {
38
list.add(compiler)
39
list.add("--")
40
getAllFields(arguments::class.java).forEach { list.parseArgument(arguments, it) }
41
- if (java && "-d" !in list) {
+ if (java && list.none { it == "-d" || it.startsWith("-d=") }) {
42
list.add("-d")
43
list.add(project.build.outputDirectory)
44
}
@@ -67,7 +67,12 @@ object ArgumentParser {
67
when (element) {
68
is Boolean -> if (element) add(argument.value)
69
is String -> {
70
- add(argument.value + "=" + element)
+ if (argument.value == "-d") {
71
+ add(argument.value)
72
+ add(element)
73
+ } else {
74
+ add(argument.value + "=" + element)
75
+ }
76
77
is Array<*> -> {
78
element.forEach {
0 commit comments