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

support wildcard(*) in command line arguments

    Details

    • Type: Enhancement
    • Status: New
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 11
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      windows_10

      Description

      ADDITIONAL SYSTEM INFORMATION :
      Windows 10, Java 11

      A DESCRIPTION OF THE PROBLEM :
      On Windows the Java-launcher processes *'s in the commandlineargument in a Unix-like way - wildcard-expansion.
      Sadly this cannot be done in a really compatible way.
      At the moment I struggle to get the literal * in arguments in different environments (IDE (Eclipse), commandline, java.lang.ProcessBuilder) - without satisfying success ("*" works in commandline, but not in IDE, ...).

      It would be nice, if I could tell java in my starter-class to give me the 'unprocessed' commandlinearguments.

      This could be implemented in different ways:

        1) another main-method, which, if exists, is called instead of the normal main-method:
          public static void mainWithRawArguments(String[] args);

        2) and/or by imlementing an marker-interface or annotation or the like ...

        3) and/or kind of global static (unmodifyable) List<String> RAW_ARGS;



        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: