NetBeans has it's own Gradle Init Script which can inject tasks into the
Gradle build. That script is not presented in the executed command line.
If you intend to use a runSingle task outside of NetBeans, it's better
to define that task in the build.gradle file. When it is present
NetBeans will also attempt to use task instead of injecting one.
On 12/27/23 03:08, Ulrich Mayring wrote:
Hi folks,
when I "Run single" in one of my projects, then the IDE starts my
program like this (per the Output Window):
JAVA_HOME="/my/path/to/java_sdk_17"
cd /home/myuser/myproject/mysubproject; ../gradlew
-PrunClassName=package.MyMainClass -s -x check -x test runSingle
However, when I use exactly that code from the command line I get the
error message:
org.gradle.execution.TaskSelectionException: Task 'runSingle' not
found in project ':mysubproject'.
../gradlew -version gives me 'Gradle 8.1.1'
Other tasks like "build" etc. do work, it appears only the NB-specific
tasks are not found. What could be the problem here?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists