[ 
https://issues.apache.org/jira/browse/NETBEANS-4524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

jimi adrian updated NETBEANS-4524:
----------------------------------
    Description: 
Currently when I need to to run single file (Shift-F6) on a modular application 
I go to

ProjectDir->RightClick->Properties->Actions->Run file via main()

and change the `exec.args` from:

`-classpath %classpath ${packageClassName}`

to

`--module-path %classpath:/opt/javafx-mods/14/ -m 
jdk14Example/${packageClassName}`

 

It would be nice to have an expression for selecting the module of the 
currently open file so that it is not hardcoded. e.g. `${moduleName}` instead 
of `jdk14Example`. This way if module name changes, the run configuration will 
not break.

 

  was:
Currently when I need to to run single file (Shift-F6) on a modular application 
I go to

ProjectDir->RightClick->Properties->Actions->Run file via main()

and change the `exec.args` from:

`-classpath %classpath ${packageClassName}`

to

`--module-path %classpath:/opt/javafx-mods/14/ -m 
jdk14Example/${packageClassName}`

 

It would be nice to have an expression for selecting the module of the 
currently open file so that it is not hardcoded. e.g. `${moduleName}` instead 
of `jdk14Example`.

 


> Add IDE selection expression ${moduleName} to reference module name defined 
> in module-info.java
> -----------------------------------------------------------------------------------------------
>
>                 Key: NETBEANS-4524
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4524
>             Project: NetBeans
>          Issue Type: New Feature
>          Components: cnd - Execution
>    Affects Versions: 12.0
>            Reporter: jimi adrian
>            Priority: Minor
>
> Currently when I need to to run single file (Shift-F6) on a modular 
> application I go to
> ProjectDir->RightClick->Properties->Actions->Run file via main()
> and change the `exec.args` from:
> `-classpath %classpath ${packageClassName}`
> to
> `--module-path %classpath:/opt/javafx-mods/14/ -m 
> jdk14Example/${packageClassName}`
>  
> It would be nice to have an expression for selecting the module of the 
> currently open file so that it is not hardcoded. e.g. `${moduleName}` instead 
> of `jdk14Example`. This way if module name changes, the run configuration 
> will not break.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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

Reply via email to