Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-4524

Add IDE selection expression ${moduleName} to reference module name defined in module-info.java

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 12.0
    • None
    • cnd - Execution
    • None

    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.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            jimi.adrian jimi adrian
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: