Hello JGO, i hope i am posting this in the right place…
I wanted to setup a SVN-repository for a current Libgdx project i am working on. This would help me to review changes and keep clean and working code in the repository.
I downloaded and installed Tortoise SVN and the Subclipse-plugin, as i am working with Eclipse.
The projects have been generated with the Libgdx setup, so i have 5 projects: “Core”, “Android”, “Html”, “Desktop” and 1 wihout suffix (whats the purpose of that project?).
I managed to create a repository and i have put those projects under version control using Eclipse->share projects->SVN.
Then i started to create the ignore list as suggested here and i also ignored “.gradle” and “build/” as suggested in the “.gitignore” file.
This works pretty good, i can review changes and check them in. The problem is, that now i want to create a second workspace, with this projects, so that i can work on two different things at the same time, without getting confused which code belongs to which thing.
So i checked out the things into a second folder and imported them into Eclipse using “Import->Existing projects into workspace”, but for some reason gradle isn’t working there. All projects, except the one without suffix, show errors, they can’t find the Libgdx-classes. Also refreshing the projects using gradle-> refresh all won’t work. For the android project it says that there is no method “android()”, for html project it says that there is no method “gwt()” and so on.
It also says, that it can’t fetch the grade.zip file. However, in the other workspace, everything is working, so i can’t understand whats the problem here.
Therefore i would like to get a step-by-step guide on how to setup a SVN-Repository, how to check-in the existing sources/projects, which files i should ignore and how to check-out and import the projects into a second workspace.
If it would be easier using any other versioning-tool (for example git), that would be okay to, but i want to be able to set up a local repository, not on github or anything similar.
If there are any missing informations, please tell me.
Thanks a lot!