How to enforce build order at package level in eclipse

Explanation: Let's say package A is always built first, followed by package B. I need to configure my eclipse workspace to mimic the build environment and show compilation errors when sources in package A refer to package B. Is this possible? If so, how?

+1


source to share


3 answers


Take a look at: Archiving Rules or Macker

These tools can alert you to a rule violation. They support the rule "a package must not call any other package."



I don't know if there is an eclipse plugin for any of these, sorry.

+1


source


You will need to create them as separate projects, with project B being related to project A, but not vice versa.



+3


source


If you want even tighter enforcement, you can make your projects OSGi / Eclipse plugins. This allows you to specify which packages are exported from a package, and you can even specify that only certain packages can refer to certain packages.

+2


source







All Articles