|Restricting build path dependencies [message #1488055]
||Wed, 26 November 2014 09:22
| Chris S
Registered: November 2011
I can't find any way for Eclipse to restrict classes from a certain directory structure in the build path from using classes from another specific path (also in the build path) and I wonder if this isn't possible in eclipse.|
More detailed description:
The project has a "src" and a "test" directory and we don't allow classes in src to use classes in "test" (but both use the same package structure inside the directories). Mainly because the distribution jar only includes the src classes and won't work if test classes are used. In the ant build, this is accomplished by just setting up separate targets with different dependencies and we'll catch it when building if we just call the targets in the right order.
It is very unfortunate that we currently don't catch such errors until the server job does the ant build; people can now accidentally check in code with the disallowed behavior.
Is there any way that I can set up the build path in Eclipse so that it says that the classes in src can't depend on test classes? Note that splitting into multiple eclipse projects is not an option.
Powered by FUDForum
. Page generated in 0.01895 seconds