kelemen / netbeans-gradle-project

This project is a NetBeans plugin able to open Gradle based Java projects. The implementation is based on Geertjan Wielenga's plugin.
173 stars 57 forks source link

Run File #432

Open elect86 opened 5 years ago

elect86 commented 5 years ago

whenever I click right button on a class with a main and then "Run File", the default mainClass will be run instead the selected one

kelemen commented 4 years ago

The run class task just passes the project property 'mainClass' to the script. If you have your own 'run' task, then you must check this property. Unless you are using the 'application' plugin, in which case it is automatically done for you.