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.
Some processors need to be notified every time the command line is parsed. Right now there is no way to achieve that.
Created attachment 45121 [details] Implementation
This sounds very strange to me. What is the purpose of it? (Concrete example please; the Javadoc does not explain much.)
This allows to start something by "default" - e.g. if you have a program that is supposed to do something even if no arguments are passed in, using the always option is a solution to the problem.
Using ModuleInstall is a simpler solution to the problem. What am I missing?
Module install is invoked sooner than the CLI does the parse and as such you do not know the CLI arguments yet. As a result the code does not know what values (port, log files, etc.) to use. Moreover there is no good way to delay the initialization as nobody notifies that CLI has been parsed unless there is a registered option there.
Ok, I'll integrate tomorrow.
/shared/data/ccvs/repository/core/sendopts/apichanges.xml,v <-- apichanges.xml new revision: 1.2; previous revision: 1.1 done Checking in manifest.mf; /shared/data/ccvs/repository/core/sendopts/manifest.mf,v <-- manifest.mf new revision: 1.2; previous revision: 1.1 done Checking in src/org/netbeans/modules/sendopts/OptionImpl.java; /shared/data/ccvs/repository/core/sendopts/src/org/netbeans/modules/sendopts/OptionImpl.java,v <-- OptionImpl.java new revision: 1.2; previous revision: 1.1 done Checking in src/org/netbeans/spi/sendopts/Option.java; /shared/data/ccvs/repository/core/sendopts/src/org/netbeans/spi/sendopts/Option.java,v <-- Option.java new revision: 1.2; previous revision: 1.1 done Checking in test/unit/src/org/netbeans/api/sendopts/AlwaysOptionTest.java; /shared/data/ccvs/repository/core/sendopts/test/unit/src/org/netbeans/api/sendopts/AlwaysOptionTest.java,v <-- AlwaysOptionTest.java initial revision: 1.1 done