You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2020/10/18 17:44:42 UTC

[GitHub] [netbeans] matthiasblaesing commented on pull request #2467: Read "exec.mainClass" property from POM file, before asking for the main class.

matthiasblaesing commented on pull request #2467:
URL: https://github.com/apache/netbeans/pull/2467#issuecomment-711327284


   The idea sound sane, however it is only one way to declare the main class. Another variant can be found in dropwizard projects:
   
   https://github.com/dropwizard/dropwizard/blob/master/dropwizard-archetypes/java-simple/src/main/resources/archetype-resources/pom.xml#L23
   
   The property there is "mainClass". We could define a list of properties as candidates for the "main class", which could be ["exec.mainClass", "project.mainclass", "mainClass"] and scan them sequentially and use the first non empty value.
   
   The thing I'd like to know: Can I override the value with the project properties dialog? There is a mainclass setting available, which should be the ultimate value.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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