Subj : jsc feature request To : netscape.public.mozilla.jseng From : Andy Madigan Date : Wed Aug 25 2004 02:02 pm This has probably been requested before, but I though since I found a way to do it, I'd ask anyway. What I would like to be able to do is specify what class/method should be called by the main method in a class generated by jsc. The current version of Codegen puts in a call to OptRuntime.main(Script,String[]). However, if line 501 of Codegen.java was changed to instead get a parameter (e.g. getScriptRuntimeClassName()) from it's CompilerEnv. The class would of course have to have a method matching this signature: public static void main(Script,String[]) and generateMain() in Codegen (starting @ line 487) would have to be made non-static (that change doesn't break anything during compile). A parameter could be added to jsc (e.g. "-runtime") that would allow the user to specify the class containing the above method. I've already made the above changes to my version of the sources, if this seems like a good idea, I can send my changed versions to whoever is interested. ===== .