• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help needed in design

 
Amol Fuke
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All ,

We have one customFile folder in project folder where in we have two seperate folders , one for samsung and one for nokia and each one having seperate files needed for slightly different behaviour of application(for samsung and nokia).Most of the other code and functanality is same for both implementation.

When we want build for samsaung , we mention samsun_build.xml while invoking ant command.In the build.xml , we copy these files from custom folder to main code base.
Similarly when we invoke nokia_build.xml , in the ant file we copy nokia specific files from nokia folder to main code base.

Now we need to use more cleaner approch.I have thought of using factory pattern but it does not fit into it as we have around 10 files and they needed to be invoked in differnt places.

Can you please suggest any approch to solve this ?

Thanks,
Amol
 
Jelle Klap
Bartender
Posts: 1951
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's no way to provide any sort of meaningful answer without knowing anything about the type hierarchy and collaboration between the classes involved.
 
Victor M. Pereira
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what do you mean with cleaner approach?

It seems a sort of maven class hierarchy for building? If that is what you want you can check Apache Ivy.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic