Plugin needs to override some settings on projects as they load.

On opening a certain kind of Java project, I need to ...
1.) Set the JVM Arguments in the JUnit Test Configuration template.
2.) Set the JDK to use.
3.) Set the LanguageLevel.
4.) Enable annotation processing.

I've created a StartupActivity with code that can ascertain all available JDKs and pick the right one.

From the project, I can obtain the artifact manager, and from there, with the right name, any of about 80 artifacts. Each seems to be a storehouse of a bunch of related objects.

If there are artifacts that are the right places to set each of these values (1-4 above) can I get some help finding them? (A bit bleary-eyed from looking, so far) Or at least confirmation that I'll find 'em if I keep looking.

On the other hand, and in response to my creeping dread that I'm looking for Times Square in Tehran, please suggest where I might find all of this stuff?

Thanks for any help you can offer.

0
1 comment
Avatar
Permanently deleted user

BTW - I know these can allegedly be set in defaults, but this type of project has different settings from what its developers usually use, and I want to reduce the number of steps they need to perform every time they get into one of this type.

0

Please sign in to leave a comment.