开发者

Java Eclipse linked projects [closed]

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜