Android cross platform library paths in Eclipse?

Here's the problem: we have a team of 4 people working with multiple Android libraries and applications that depend on those libraries. Some of us are on Windows 7, others are on OS X, and we use GitHub. Several times a day each of us has to change the paths to the Android library because the project.properties files store platform-specific paths (i.e. it uses \ as the Windows path separator and / as the OS X path separator). This is really annoying and we spend a lot of time on it.

Does someone have a decent solution? It seems to me that there should be something like CPP where we can output ifdef in project.properties and automatically fix the paths to match our OS whenever we log out of github or something.

Oh, and to be clear, we often add and remove libraries, or change which libraries depend on each other, and we all change all the libraries regularly ... so just adding project.properties to gitignore won't work very well because we will still have to regularly modify the libraries to make sure we have all the right things.

+3


source to share


1 answer


In the last project I worked with, we changed the paths for our system and add the file to our .gitignore. It was a mature product, so the paths rarely changed.



0


source







All Articles