Using Your Own SVN Repository

From CDOT Wiki
Jump to: navigation, search

Using Your Own SVN Repository

Start by selecting the SVN perspective.

Svn1.png

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

Svn2.png

Select Create a new repository location and click Next.

Svn3.png

Enter the Url for YOUR SVN repository.

Svn4.png

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

Svn5.png

Select the folder to check out and click Finish.

Svn6.png

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.

Svn7.png

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

Svn8.png

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

Svn9.png

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.

Svn10.png

Enter your root folder name and click Finish.

Svn11.png

You should now see something like this.

Svn12.png

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.

Svn13.png

Create a new subfolder under your root folder.

Svn14.png

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

Svn15.png

Right click on this subfolder and select Import.

Svn16.png

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

Svn17.png

Then click OK.

Svn18.png

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

Svn19.png

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.

Svn20.png

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