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 - Explicit usage of OptionProcessor
Summary: Explicit usage of OptionProcessor
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Launchers&CLI (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: API_REVIEW_FAST
Depends on:
Blocks:
 
Reported: 2017-03-21 12:28 UTC by Jaroslav Tulach
Modified: 2017-03-29 01:43 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Binary that can handle the OptionProcessor classes sent into create method (107.19 KB, application/octet-stream)
2017-03-21 13:43 UTC, Jaroslav Tulach
Details
Binary built from 69cb1b2f29c8 (107.96 KB, application/octet-stream)
2017-03-23 13:44 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
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