Skip to content

Feature Proposal: Make vmArgs accept an array #389

Closed

Description

I would like to propose that vmArgs accept an Array as an alternative to the current String. Keep the string for compatibility reasons, but allow an array because some projects accept a large number of arguments that would be easier to look at if presented as an array.

Activity

  1. andxu commented on Sep 10, 2018

    @andxu
    Contributor

    The PR is attached, to test it, add the following properties to launch.json of test case ArgsTest(in TestPlan.md)

     "mainClass": "ArgsTest",
      "args": ["a b", "foo \\\"bar"],
     "vmArgs": ["-Xms64M",  "-Xmx128M",  "-Dfoo= \\bar"]
    

    Add the following statement to get the properties:

      String foo = (String) System.getProperties().get("foo");
    

    the variables should be like this:

    image

    Please be careful that the bad vmArgs may cause the program fail to start, eg: "vmArgs": ["-Xms64M", "-Xmx128M", "-Dfoo= "bar"], it is by-design and can also be reproduced at eclipse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions