Enhance dcmd/CommandExecutor.execute() to accept vm options

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: None
    • Component/s: core-svc

      The current signature of the execute() method is as follows:
      public final OutputAnalyzer execute(String cmd, boolean silent)

      It would be useful to have another execute() method as follows:
      public final OutputAnalyzer execute(String vmOption, String cmd, boolean silent)

      so that the caller can pass in some vm option for debugging purposes, e.g.
      OutputAnalyzer output = cmdExecutor.execute("-J
      Xlog:class+load,cds=debug", jcmd, true/*silent*/);

            Assignee:
            Unassigned
            Reporter:
            Calvin Cheung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: