• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Help needed in design

 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 1952
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic