Board index » jbuilder » Runtime configurations help ...
Renato J. Mascardo
JBuilder Developer |
Renato J. Mascardo
JBuilder Developer |
Runtime configurations help ...2004-11-15 02:11:16 PM jbuilder22 I'm would like to put together an OpenTool that 1) adds an argument to every runtime configurations vm paramters based on 2) an runtime configuration "enable opentool" option to all of the unique runtime configuration screens. The documentation on the runtime configuration API is rather poor. Can someone please point me in the right direction? Docs? Samples? Thanks! -rjm |
Paul Furbacher [TeamB]
Java Developer |
2004-11-16 02:35:28 AM
Re:Runtime configurations help ...
Renato J. Mascardo wrote:
QuoteI'm would like to put together an OpenTool that 1) adds an argument to every cc.borland.com/codecentral/ccweb.exe/files I think that will get you started. -- Paul Furbacher (TeamB) Save time, search the archives: www.borland.com/newsgroups/ngsearch.html Is it in Joi Ellis's Faq-O-Matic? www.visi.com/~gyles19/fom-serve/cache/1.html Finally, please send responses to the newsgroup only. That means, do not send email directly to me. Thank you. |
Renato J. Mascardo
Java Developer |
2004-11-16 08:15:40 AM
Re:Runtime configurations help ...
Thank you for that lin, however I'm not looking to create a new Runner
rather get a list of a projects runtime configurations. How can I do that? Thanks! -rjm "Paul Furbacher [TeamB]" < XXXX@XXXXX.COM >wrote in message QuoteRenato J. Mascardo wrote: {smallsort} |
Paul Furbacher [TeamB]
Java Developer |
2004-11-16 11:09:56 PM
Re:Runtime configurations help ...
Renato J. Mascardo wrote:
QuoteThank you for that lin, however I'm not looking to create a new Runner and do research based on the classes found there. QuoteHow can I do that? intelligent searches. It also includes or requires scanning the verbose output in the console window -- what classes does JBuilder itself load, and when? They aren't just loaded at startup, so if you want to research certain functionality, you may have to activate it by pulling down a menu, or opening a dialog box. In the Find Class dialog, try *runtime* as the search pattern. In particular, look at RuntimeManager RunPropertyGroup.getConfigurations() RunConfiguration.getMap() Write a small investigatory OpenTool (i.e., not a full-blown OpenTool -- I have one called "ot_api_investigations" in which I indeed do have an investigation of Runtime configs, among many other concepts). Run your open tool investigator, and open a project, preferably one which has at least one runtime configuration. Get the configurations for the current project, iterate through them, and print out their maps. I think you'll see what you are looking for ... or you might not. First, where do the keys come from? Keith's OpenTool points the way. He implements a static member variable, VM_PARAMS. Looking at other descendents of JavaRunner (e.g., ApplicationRunner), you see something similar. Stick a few output statements in your investigator code which print out the map properties VM_PARAMETERS and PARAMETERS. Second, properties are only saved if they are different from the default. So, unless the runtime config you are looking at has modified the VM params, or the JBuilder params, you won't see a property in the listings. Where are these properties saved? With a text editor, look in any project's .jpx file. (You have to do this outside JBuilder.) -- Paul Furbacher (TeamB) Save time, search the archives: www.borland.com/newsgroups/ngsearch.html Is it in Joi Ellis's Faq-O-Matic? www.visi.com/~gyles19/fom-serve/cache/1.html Finally, please send responses to the newsgroup only. That means, do not send email directly to me. Thank you. |