Open main menu

CDOT Wiki β

Using Your Own SVN Repository

Using Your Own SVN Repository

Start by selecting the SVN perspective.


Now select File->New->SVN->Checkout Projects from SVN.


Select Create a new repository location and click Next.


Enter the Url for YOUR SVN repository.


Enter your username and password and check the Save Password box. Then click OK.


Select the folder to check out and click Finish.


You'll get a warning message saying you're checking out the root of your repository. This is OK because you have nothing in it yet. So just click Yes.


You don't need to define a new project yet so just click Cancel.


You should now see your SVN repository in the SVN Repositories view.


Now create a new remote folder in your repository. This folder will be your root folder. You'll be able to save all of your projects inside this folder.


Enter your root folder name and click Finish.


You should now see something like this.


Now create an new repository location that points to your teacher's repository. Then checkout the w11-basics-hello folder. This will download the folder into your workspace. You should then get a workbench that looks something like this.


Create a new subfolder under your root folder.


The subfolder I created was called w11-basics-hello. This corresponds to the name used in your teacher's repository.


Right click on this subfolder and select Import.


Select the cs.ecl.basics.hello directory to import.


Then click OK.


You should now see the code for w11-basics-hello in your own repository.


Finally, you can open the Java perspective and close the w11-basics-hello project that you checked out from the teacher's repository. Once the project is closed you can remove the teacher's repository Url. You will now be left with only one repository that you can work with - your own.


Congratulations! You've successfully copied a project from your teacher's repository to your own. You now have authorization to commit (checkin) code.