Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8138586

Provide a unified programmatic way to invoke JDK tools

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: tools

      Description

      javax.tool.ToolProvider has static methods to get system javac and javadoc. It'd be very useful to provide a static method to find a system tool of a given name (e.g. javap, xjc, etc) if the provider matching the given name can be found.

      javax.tool.Tool interface probably would need to provide a way to specify the name of the provider.

      Most JDK tools do not provide supported APIs to launch the tool programmatically. Existing application may choose to call the internal API directly to avoid launching the tool in a separate process. A unified way would be preferred to individual tool defining its own supported API.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jjg Jonathan Gibbons
              Reporter:
              mchung Mandy Chung
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: