Re[2]: Re: Compiling on the fly

Artem Gr <[email protected]> Wed, 15 Dec 2004 11:31:31 +0300
Newsgroups gmane.comp.lang.nice.general
Message-ID <[email protected]>
DB> This sounds very interesting. Have you, or are you planning to make this tool
DB> publicly available?

I hope to,
but my current implementaion is not clear enough for my likings.

>> Overall, I have no problems compiling NiceTee
>> dynamically from the running CMS system.
>> The only drawback for now is that I can't directly
>> catch error reports generated by the compiler.

DB> I believe the best way would be to plug into the compiler at a slightly higher
DB> level. In that mode, you pass a listener that is called back by the compiler
DB> to notify the progress of the compilation and possible warnings or errors.
DB> This is how all of the command-line compiler, the ant task, the unit tester
DB> and the eclipse plugin work, and of course they do different things in the
DB> listener.

DB> I encourage you to look at how any of those works to see how to plug into the
DB> compiler in that way. For instance, the command-line compiler is in the
DB> src/nice/tools/compiler/console directory. It defines the 'compile' method you
DB> are using at the moment. You should rather directly call the compile method
DB> defined in nice.tools.compiler that takes several arguments, including a
DB> Compilation object. Don't hesitate to ask for help if you have any problem
DB> figuring this out.

Thanks alot, I'll try to look into it again.

DB> Cheers,

DB> Daniel





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/