Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 25th, 2009, 09:24 AM
devsonx7 devsonx7 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2008
Posts: 190 devsonx7 User rank is Sergeant (500 - 2000 Reputation Level)devsonx7 User rank is Sergeant (500 - 2000 Reputation Level)devsonx7 User rank is Sergeant (500 - 2000 Reputation Level)devsonx7 User rank is Sergeant (500 - 2000 Reputation Level)devsonx7 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 7 h 7 m 47 sec
Reputation Power: 19
Managing project dependencies in Eclipse

Hi, using Eclipse IDE i have two projects they both use each other's packages ... I get an eclipse error ... "a cycle was detected in a build path of a project eclipse" ... I can easily change this to a warning in eclipse, wondering if this can give run time problems

Thanks

Reply With Quote
  #2  
Old June 25th, 2009, 10:22 AM
valined's Avatar
valined valined is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2004
Location: Brussels
Posts: 889 valined User rank is Brigadier General (60000 - 70000 Reputation Level)valined User rank is Brigadier General (60000 - 70000 Reputation Level)valined User rank is Brigadier General (60000 - 70000 Reputation Level)valined User rank is Brigadier General (60000 - 70000 Reputation Level)valined User rank is Brigadier General (60000 - 70000 Reputation Level)valined User rank is Brigadier General (60000 - 70000 Reputation Level)valined User rank is Brigadier General (60000 - 70000 Reputation Level)valined User rank is Brigadier General (60000 - 70000 Reputation Level)valined User rank is Brigadier General (60000 - 70000 Reputation Level)valined User rank is Brigadier General (60000 - 70000 Reputation Level)valined User rank is Brigadier General (60000 - 70000 Reputation Level)valined User rank is Brigadier General (60000 - 70000 Reputation Level)valined User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 2 Weeks 2 Days 4 h 28 m 35 sec
Reputation Power: 654
Lightbulb

Cycling dependencies are a maintenance nightmare.
I suggest you to move the code that created the cycle to a new project and make the other two depend on this one.
Comments on this post
mrider agrees: Absolutely. Dependency cycles are a real headache.
tfecw agrees!
__________________
"Problem" is just a bleak word for challenge. -- Richard Fish
Javalanche

Reply With Quote
  #3  
Old June 26th, 2009, 07:04 AM
devsonx7 devsonx7 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2008
Posts: 190 devsonx7 User rank is Sergeant (500 - 2000 Reputation Level)devsonx7 User rank is Sergeant (500 - 2000 Reputation Level)devsonx7 User rank is Sergeant (500 - 2000 Reputation Level)devsonx7 User rank is Sergeant (500 - 2000 Reputation Level)devsonx7 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 7 h 7 m 47 sec
Reputation Power: 19
Quote:
Originally Posted by valined
Cycling dependencies are a maintenance nightmare.
I suggest you to move the code that created the cycle to a new project and make the other two depend on this one.


By using interface or abstract classes on the third object? i would think the needed code/classes can be made an abstract class in a third project then every class which needs it creates a local child class.. Say i have project A and Project B... Project A needs class bb from B and project B needs class aa from A, how do i implements this using third project?

Reply With Quote
  #4  
Old June 26th, 2009, 09:08 AM
tfecw tfecw is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Nov 2004
Location: Washington DC
Posts: 2,401 tfecw User rank is Brigadier General (60000 - 70000 Reputation Level)tfecw User rank is Brigadier General (60000 - 70000 Reputation Level)tfecw User rank is Brigadier General (60000 - 70000 Reputation Level)tfecw User rank is Brigadier General (60000 - 70000 Reputation Level)tfecw User rank is Brigadier General (60000 - 70000 Reputation Level)tfecw User rank is Brigadier General (60000 - 70000 Reputation Level)tfecw User rank is Brigadier General (60000 - 70000 Reputation Level)tfecw User rank is Brigadier General (60000 - 70000 Reputation Level)tfecw User rank is Brigadier General (60000 - 70000 Reputation Level)tfecw User rank is Brigadier General (60000 - 70000 Reputation Level)tfecw User rank is Brigadier General (60000 - 70000 Reputation Level)tfecw User rank is Brigadier General (60000 - 70000 Reputation Level)tfecw User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 2 Days 19 h 47 m 47 sec
Reputation Power: 689
Send a message via AIM to tfecw
Quote:

By using interface or abstract classes on the third object? i would think the needed code/classes can be made an abstract class in a third project then every class which needs it creates a local child class.. Say i have project A and Project B... Project A needs class bb from B and project B needs class aa from A, how do i implements this using third project?



This is where things get tricky and i personally struggle with deciding when to make a new project.
In your case, if i understood correctly (you talked about inheritance and then gave an example that didn't use that)m, It seems like you need a Project C that has class bb and aa in it and both Project A and B use that jar.
__________________
Open for extension, closed for modification

Reply With Quote
  #5  
Old June 26th, 2009, 09:52 AM
devsonx7 devsonx7 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2008
Posts: 190 devsonx7 User rank is Sergeant (500 - 2000 Reputation Level)devsonx7 User rank is Sergeant (500 - 2000 Reputation Level)devsonx7 User rank is Sergeant (500 - 2000 Reputation Level)devsonx7 User rank is Sergeant (500 - 2000 Reputation Level)devsonx7 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 7 h 7 m 47 sec
Reputation Power: 19
Quote:
Originally Posted by tfecw
This is where things get tricky and i personally struggle with deciding when to make a new project.
In your case, if i understood correctly (you talked about inheritance and then gave an example that didn't use that)m, It seems like you need a Project C that has class bb and aa in it and both Project A and B use that jar.


definitely project C is the sensible solution but may be tricky to implement as it will have some hibernate mappings involved .. i.e aa has a one to many relationship with bb ...!!!

Reply With Quote
  #6  
Old June 26th, 2009, 10:03 AM
tfecw tfecw is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Nov 2004
Location: Washington DC
Posts: 2,401 tfecw User rank is Brigadier General (60000 - 70000 Reputation Level)tfecw User rank is Brigadier General (60000 - 70000 Reputation Level)tfecw User rank is Brigadier General (60000 - 70000 Reputation Level)tfecw User rank is Brigadier General (60000 - 70000 Reputation Level)tfecw User rank is Brigadier General (60000 - 70000 Reputation Level)tfecw User rank is Brigadier General (60000 - 70000 Reputation Level)tfecw User rank is Brigadier General (60000 - 70000 Reputation Level)tfecw User rank is Brigadier General (60000 - 70000 Reputation Level)tfecw User rank is Brigadier General (60000 - 70000 Reputation Level)tfecw User rank is Brigadier General (60000 - 70000 Reputation Level)tfecw User rank is Brigadier General (60000 - 70000 Reputation Level)tfecw User rank is Brigadier General (60000 - 70000 Reputation Level)tfecw User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 2 Days 19 h 47 m 47 sec
Reputation Power: 689
Send a message via AIM to tfecw
if project c has both aa and bb then what's the issue?

Reply With Quote
  #7  
Old June 26th, 2009, 10:18 AM
devsonx7 devsonx7 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2008
Posts: 190 devsonx7 User rank is Sergeant (500 - 2000 Reputation Level)devsonx7 User rank is Sergeant (500 - 2000 Reputation Level)devsonx7 User rank is Sergeant (500 - 2000 Reputation Level)devsonx7 User rank is Sergeant (500 - 2000 Reputation Level)devsonx7 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 7 h 7 m 47 sec
Reputation Power: 19
Quote:
Originally Posted by tfecw
if project c has both aa and bb then what's the issue?


the concept ain't correct perhaps ... C has to contain only generic hibernate classes and objects which any other new project should be able to use... So C as an abstract/generic project to contain HibernateUtils, GenericDAO + a specific generic class(es), in this case aa ... But aa will/may have relationship/mapped with other classes like bb, ee, ff from those respective projects B, E, F .. I think i may have confused you a bit .. but i will try figure out something, thanks a lot for your ideas, helped!!!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Managing project dependencies in Eclipse


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
Stay green...Green IT