开发者

Java Eclipse linked projects [closed]

开发者 https://www.devze.com 2023-03-31 18:34 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopene开发者_高级运维d, visit the help center. Closed 11 years ago.

If I for project1 put on build path project2 - project2 will be build before project1? So classes from project2 can be referenced in project1? But what will be in case when also project2 uses classes from project1? Thanks.


You must not create circular references (project1 references project2 and project2 references project1).

If each of your project represent a "layer" for your application (for example, presentation layer, and business layer), only one layer must know the other (in this example, only presentation layer knows about business layer and calls it).

If each project needs other project utility classes, just extract those classes into a third project, and make each project reference this third project.

A third solution is to merge your 2 projects.

0

精彩评论

暂无评论...
验证码 换一张
取 消