I have 3 different packages, let's say :
com.pack.*
com.package.commons.*
com.package.app.*
The thing is, these 3 packages are in the same source folder and I can't move them.
- My
com.pack
is completely independant, let's say it's my framework. - My
com.package.commons
can import classes fromcom.pack
ONLY. - My last package can import whichever classes it needs.
In my eclipse project everything is thing as long as I'm the only one to develop, I know I can't import anything without checking first where it comes from. But I work in a team and errors happen frequently, I've tried to make an Ant Build that will first build my framework then my commons (with the framework in it's CP during build time) and lastly my app. But I can't get any error from it. Do you have any idea how I can perform these checks during build time or any other solution?
thanks
EDIT: I can't split in 3 projects even if it would be lot easier I know that!