Question

Here's the issue: We have a team of 4 people working on a few Android libraries and apps dependent on those libraries. Some of us are on Windows 7, others are on OS X, and we use GitHub. Several times a day, we each have to change the Android Library paths because the project.properties files stores platform dependent paths (that is, it uses \ as a Windows path separator and / as an OS X path separator.) It's really annoying and we waste a good deal of time on it.

Does anyone have a decent solution for this? It seems to me that surely there must exist something like the CPP where we can throw an ifdef into project.properties and have it automatically fix paths to match our OS whenever we pull from github or something.

Oh, and to be clear, we're frequently adding and removing libraries, or changing which libraries depend on each other, and all of us modify all of the libraries on a regular basis... so simply adding project.properties to gitignore wouldn't work very well, because we'd still have to regularly modify the libraries to make sure we have all the correct things included.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top