Re: Setting JVM args for Run Single File in Gradle project

2021-03-05 Thread Scott Palmer
That works for me. I did dig around and found the task name and property in the run.single "Build Action" for the project. It just meant digging a little bit deeper than I was expecting and realizing that I could define my own runSingle task instead of relying on the one NB must be adding dynamic

Re: Setting JVM args for Run Single File in Gradle project

2021-03-03 Thread Laszlo Kishalmi
Well, that's not really supported without any tweaks. There is workaround though: Create a custom task named: runSingle (It might be a JavaExec type) in your Gradle build. It can use the following project properties: runClassName for the main class to be run and runArgs which is a string for

Setting JVM args for Run Single File in Gradle project

2021-03-03 Thread Scott Palmer
Just a quick question... How do I configure JVM options for running a single file (via right-click) for a Gradle project in NB 12.x? (I need to add a javaagent.) If there are docs somewhere please let me know. Thanks, Scott