String substitution in PSF files? [message #716951] |
Thu, 18 August 2011 17:29  |
Eclipse User |
|
|
|
I've been testing out the new team project set support in the nightlies, and it's great! One more thing would be perfect for us, but I can't figure it out - string substitution.
Our use case is this - we have "master" repositories on github, and each developer works out of their own fork on their own github account. A pretty common arrangement, I'm sure. Anyway, what I would like to do is define a team project set, but replace the account name with a parameter pulled from an environment variable. Then, I could distribute the PSF file to the whole team, and each developer would end up getting the projects from their own fork.
Is this possible already, or is it something that could be added?
|
|
|
|
|
Re: String substitution in PSF files? [message #719502 is a reply to message #716951] |
Sat, 27 August 2011 10:23  |
Eclipse User |
|
|
|
Good idea!
But I wouldn't use environment variables because they're hard to set up and keep track of.
How about using git config variables? For github, the user name is possibly already configured in .gitconfig (as github.user). You could then put ${github.user} in the .psf file and tell everyone to run this command before importing the project set:
git config --global github.user username
|
|
|
Powered by
FUDForum. Page generated in 0.18324 seconds