mbien commented on issue #7711:
URL: https://github.com/apache/netbeans/issues/7711#issuecomment-2317830910

   the project run config is specific to the main entry point of the project. 
This is used when the the project run button is pressed.
   
   The run-single action simply tries to run the selected file, it won't use 
the project config.
   
   You can add more run actions with arbitrary configs via nbactions.xml
   looks like this:
   ```xml
       <action>
           <actionName>CUSTOM-custom custom codec</actionName>
           <displayName>custom exec</displayName>
           <goals>
               <goal>exec:java</goal>
           </goals>
           <properties>
               
<xec.mainClass>dev.mbien.mavenproject3.Mavenproject3</xec.mainClass>
               <stdout.encoding>US-ASCII</stdout.encoding>
           </properties>
       </action>
   ```
   this will appear under the "Run Maven" context menu.
   
   I don't know if you can add properties to the run-single action, I never 
tried doing that so far.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to