As was mentioned you could have two different packages, to make it simpler, where ant could then use different directories in the classpath.
This will work but you gain little over just using libraries. If you are using continuous integration, it some automatic build then ant makes sense, but if building in eclipse then it doesn't. On Jan 9, 2012 3:13 PM, "TreKing" <[email protected]> wrote: > On Mon, Jan 9, 2012 at 2:00 PM, Ricardo Amaral > <[email protected]>wrote: > >> But I'm not very fond of that solution (I prefer to keep my app in one >> single project, if possible) and I'm trying to look for alternatives and >> then make up my mind about which one is better for my needs. >> > You could include both libraries into your one project, abstract both into > concrete classes that are instantiated based on some static flag, and only > instantiate and use the one you need based on the flag. Build, flip bit, > rebuild. > >> Perhaps Ant could work as a solution? If so, any pointers or tutorial? >> Never worked with Ant before... >> > I've never used Ant before either, but from heresay it would probably do > what you need. If it were me, and I needed information on this topic, I > would use Google. Ant is a pretty popular tool and there is surely plenty > of information out there waiting to be found. > > > ------------------------------------------------------------------------------------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

