Hi, who knows how to pass command line arguments t...
# javascript
s
Hi, who knows how to pass command line arguments to gradle task nodeDevelopmentRun?
v
Afair there is no built-in way to do it. You probably would need to use project properties that you then forward to the task using the build script.
s
As a workaround now I am using this approach
Copy code
tasks.named<NodeJsExec>("jsNodeDevelopmentRun") {
    args(project.property("args"))
}
and run code like this :jsNodeDevelopmentRun -Pargs="arg1 arg2" for me it works well
v
Yes, that's basically what I meant. 🙂