Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Restricting build path dependencies
Restricting build path dependencies [message #1488055] Wed, 26 November 2014 09:22
Chris S is currently offline Chris SFriend
Messages: 20
Registered: November 2011
Junior Member
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.
Previous Topic:Java Derby
Next Topic:Eclipse hangs on startup
Goto Forum:
  


Current Time: Tue Apr 23 16:36:54 GMT 2024

Powered by FUDForum. Page generated in 0.02562 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top