[Gradle, JS] Add nodeArgs to NodeJsExec
^KT-43793 fixed
This commit is contained in:
+7
-3
@@ -32,6 +32,9 @@ constructor(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Input
|
||||||
|
var nodeArgs: MutableList<String> = mutableListOf()
|
||||||
|
|
||||||
@Input
|
@Input
|
||||||
var sourceMapStackTraces = true
|
var sourceMapStackTraces = true
|
||||||
|
|
||||||
@@ -52,12 +55,13 @@ constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun exec() {
|
override fun exec() {
|
||||||
|
val newArgs = mutableListOf<String>()
|
||||||
|
newArgs.addAll(nodeArgs)
|
||||||
if (inputFileProperty.isPresent) {
|
if (inputFileProperty.isPresent) {
|
||||||
val newArgs = mutableListOf<String>()
|
|
||||||
newArgs.add(inputFileProperty.asFile.get().canonicalPath)
|
newArgs.add(inputFileProperty.asFile.get().canonicalPath)
|
||||||
args?.let { newArgs.addAll(it) }
|
|
||||||
args = newArgs
|
|
||||||
}
|
}
|
||||||
|
args?.let { newArgs.addAll(it) }
|
||||||
|
args = newArgs
|
||||||
|
|
||||||
if (sourceMapStackTraces) {
|
if (sourceMapStackTraces) {
|
||||||
val sourceMapSupportArgs = mutableListOf(
|
val sourceMapSupportArgs = mutableListOf(
|
||||||
|
|||||||
Reference in New Issue
Block a user