This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 270154

Summary: Explicit usage of OptionProcessor
Product: platform Reporter: Jaroslav Tulach <jtulach>
Component: Launchers&CLIAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED FIXED    
Severity: normal CC: apireviews, mbalin
Priority: P3 Keywords: API_REVIEW_FAST
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Binary that can handle the OptionProcessor classes sent into create method
Binary built from 69cb1b2f29c8

Description Jaroslav Tulach 2017-03-21 12:28:24 UTC
The existing 
http://bits.netbeans.org/8.2/javadoc/org-netbeans-modules-sendopts/overview-summary.html
version of SendOpts contains method CommandLine.create(Class...) - that works with ArgsProcessor only - let's make it work with OptionProcessor classes as well.

In addition to that consider passing in directly existing instances those interfaces.
Comment 1 Jaroslav Tulach 2017-03-21 12:31:54 UTC
See proposal at
https://hg.netbeans.org/ergonomics/rev/f6110122d04f
Comment 2 Jaroslav Tulach 2017-03-21 13:43:46 UTC
Created attachment 163912 [details]
Binary that can handle the OptionProcessor classes sent into create method
Comment 3 Jaroslav Tulach 2017-03-21 14:10:48 UTC
Another part for review: Allow printing of Env.usage into own stream: http://hg.netbeans.org/ergonomics/rev/93c16431b222
Comment 4 Jaroslav Tulach 2017-03-23 13:42:36 UTC
parse with already created instances: http://hg.netbeans.org/ergonomics/rev/69cb1b2f29c8
Comment 5 Jaroslav Tulach 2017-03-23 13:44:06 UTC
Created attachment 163926 [details]
Binary built from 69cb1b2f29c8
Comment 6 Jaroslav Tulach 2017-03-25 19:41:03 UTC
I'd like to integrate on Monday.
Comment 7 Jaroslav Tulach 2017-03-28 07:36:25 UTC
Merged as http://hg.netbeans.org/core-main/rev/e2878ebf739d
Comment 8 Quality Engineering 2017-03-29 01:43:42 UTC
Integrated into 'main-silver', will be available in build *201703290002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/f6110122d04f
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #270154: Allow explicit use of OptionProcessor in CommandLine.create(Class...) method