Java eclipse build path options question

I have a question about Eclipse (I use Helios).
When a project depends on different libraries, we add them to the class path through the Build Path dialog box.
However, in the same dialog box there is a tab for projects (required projects in the build path).
I don’t understand when someone will add such a link from one project to another.
I mean, if projectA needs functionality from projectB, then we can make a jar from projectB and use it in projectA.
But when, will we then add a link from projectA to projectB to need projectB in the path of building projectA?
Can someone please give an example?
Thank!

+5
source share
3 answers

There are two reasons depending on the project.

  • You can “click” on the source code of another project when its code is called.
  • If you create and run the application in Eclipse for dev purposes, the code changes will be immediately collected.

: , , , . " ", , . "", , B A , A . , A , B.

+4

" " , , .

+3

One (for me good, for others, perhaps blasphemous) use of "Project Dependancy" is when you have a separate project for unit tests. Make the unit test project depend on the project to be tested. Of course, this is good if you are not maven or hudson or blah, blah, blah user (like me). Not that blah, blah, blah, these are bad things.

+1
source

All Articles