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 109784 - An option that is always on
Summary: An option that is always on
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: API, API_REVIEW_FAST
Depends on:
Blocks:
 
Reported: 2007-07-16 11:35 UTC by Jaroslav Tulach
Modified: 2008-12-22 13:37 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Implementation (10.62 KB, patch)
2007-07-16 11:36 UTC, Jaroslav Tulach
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2007-07-16 11:35:29 UTC
Some processors need to be notified every time the command line is parsed. Right now there is no way to achieve that.
Comment 1 Jaroslav Tulach 2007-07-16 11:36:02 UTC
Created attachment 45121 [details]
Implementation
Comment 2 Jesse Glick 2007-07-16 15:56:50 UTC
This sounds very strange to me. What is the purpose of it? (Concrete example please; the Javadoc does not explain much.)
Comment 3 Jaroslav Tulach 2007-07-20 09:02:32 UTC
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.
Comment 4 Jesse Glick 2007-07-20 18:14:48 UTC
Using ModuleInstall is a simpler solution to the problem. What am I missing?
Comment 5 Jaroslav Tulach 2007-07-23 10:46:37 UTC
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.
Comment 6 Jaroslav Tulach 2007-07-29 06:20:26 UTC
Ok, I'll integrate tomorrow.
Comment 7 Jaroslav Tulach 2007-07-30 16:05:28 UTC
/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