This post originated from an RSS feed registered with Java Buzz
by Brian McCallister.
Original Post: AspectJ for 3rd Party Fixes
Feed Title: Waste of Time
Feed URL: http://kasparov.skife.org/blog/index.rss
Feed Description: A simple waste of time and weblog experiment
AspectJ resurged over
on
TSS and one comment reminded me of the singly most useful thing
I've done with it for production purposes: used it to augment a very
large third party library. This, of course, is a taboo thing to do,
but if the library you are mucking around with is, er, the AspectJ
compiler... maybe it is okay?
At the time, anyway, the AspectJ compiler had a useful incremental
compilation mode where it would keep metadata in memory and
basically have a server compiler process. This is fine and dandy if
you don't mind hitting the space bar to do an incremental
compile. It turned out to be far easier to instrument the compiler
to have it take input from a tcp socket so that an ant task could
kick off the incremental compile from IDEA =)
Probably not what people would consider good but it reduced
compile time from minutes to seconds =)