Handling the export in eclipse thru a plugin
I have a java application that have different settings and dependency versions depending on the company branch it is install in.
So what I did is to create a plugin that create an开发者_如何学JAVA item in the right click context menu of the project in eclipse to make these changes.
However I am wondering if its possible to catch the OnExport event of eclispe (if it exists) and do this automatically everytime the solution is exported.
Would this be possible?
Many thanks
If I understand what you're asking correctly, the Eclipse way to do this would be to write a Builder and add it to the project; then the settings file would be rebuilt whenever it's appropriate, making an up-to-date version always available to export. Here is a good place to start learning about how to do this.
精彩评论