Eclipse Plugin Central

Plugin Design - How to apply a javaagent transformation on save/compile?

rbygrave - Apr 07, 2008 - 05:10 PM
Post subject: How to apply a javaagent transformation on save/compile?
I'm looking to find or develop a plugin that will modify the .class file after it has been compiled. Essentially I'll be applying a transformation like javaagent but at post compile time.

What is the best approach to this problem?

CompilationParticipant seemed like a starting point but does not quite seem right for the job?

Any thoughts or suggestions?

Thanks, Rob.
rbygrave - Apr 09, 2008 - 12:43 AM
Post subject: RE: How to apply a javaagent transformation on save/compile?
As a further note... in jdk6 it looks like you can add an agent dynamically at runtime. I'll have to test this out but perhaps this is an option.

It would be nice to do this in a low tech post save/compile manor in eclipse though... anyone got thoughts on that?
rbygrave - Apr 09, 2008 - 12:44 AM
Post subject: RE: How to apply a javaagent transformation on save/compile?
refer to the Starting Agents After VM Startup section in java/lang/instrument/package-summary.html


http://today.java.net/download/jdk6/doc ... mmary.html
All times are GMT - 6 Hours
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits