Both sides previous revisionPrevious revisionNext revision | Previous revision |
student:eclipse:subversion [2019/02/21 11:26] – bernstdh | student:eclipse:subversion [2020/07/17 16:45] (current) – bernstdh |
---|
| |
| |
However, before you start note that **it may be difficult to install the SVN Connector on Windows machines running Eclipse Oxygen**. If this is your current environment then you have two options - install Eclipse Neon instead or figure out how to install the connector (which is available from Polarion.com) manually. (Bug report [[ https://bugs.eclipse.org/bugs/show_bug.cgi?id=518033 | 518033 ]] may prove usefule in this regard.) | However, before you start note that **it may be difficult to install the SVN Connector on Windows machines running Eclipse Oxygen**. If this is your current environment then you have two options - install Eclipse Neon instead or figure out how to install the connector (which is available from Polarion.com) manually. (Bug report [[ https://bugs.eclipse.org/bugs/show_bug.cgi?id=518033 | 518033 ]] may prove useful in this regard.) |
| |
| |
- When the next dialog appears check "I accept..." and click on <key>Finish</key>. You may get a warning that says you are "installing software that contains unsigned content". You can ignore it and click <key>OK</key>. | - When the next dialog appears check "I accept..." and click on <key>Finish</key>. You may get a warning that says you are "installing software that contains unsigned content". You can ignore it and click <key>OK</key>. |
- Restart Eclipse. | - Restart Eclipse. |
| |
| |
| You can change the SVN interface by clicking on <key>Preferences</key>-<key>Team</key>-<key>SVN</key> and selecting the "SVN interface" from the "Client:" drop-down list. |
| |
==== Connecting to Subversion on stu ==== | ==== Connecting to Subversion on stu ==== |
| |
| === Protocol === |
| |
Some Subversions Repository Servers use ''%%http%%'' (or ''%%https%%'') as the communications protocol. ''%%stu%%'' uses ''%%ssh%%''. | Some Subversions Repository Servers use ''%%http%%'' (or ''%%https%%'') as the communications protocol. ''%%stu%%'' uses ''%%ssh%%''. |
| |
| |
| === Identifying a Repository === |
| |
- Learn the URL for the repository. (It is likely to be something like ''%%svn+ssh://stu.cs.jmu.edu/cs/students/csXXX/SSYY/teamNN %%'' where XXX corresponds to the course number, SS corresponds to the semester [either fa or sp], YY corresponds to the year, and NN corresponds to the team number). **Note:** If you are using a computer (e.g., your personal computer) in which your username is not your JMU eID, you should insert ''%%eID@%%'' between ''%%//%%'' and ''%%stu%%'' (where eID denotes your JMU eID). | - Learn the URL for the repository. (It is likely to be something like ''%%svn+ssh://stu.cs.jmu.edu/cs/students/csXXX/SSYY/teamNN %%'' where XXX corresponds to the course number, SS corresponds to the semester [either fa or sp], YY corresponds to the year, and NN corresponds to the team number). **Note:** If you are using a computer (e.g., your personal computer) in which your username is not your JMU eID, you should insert ''%%eID@%%'' between ''%%//%%'' and ''%%stu%%'' (where eID denotes your JMU eID). |
- If you are not already, use the SVN perspective by clicking on <key>Window</key>-<key>Perspective</key>-<key>Open Perspective</key>-<key>Other</key>, selecting "SVN Repository Exploring", and clicking on <key>OK</key>. | - If you are not already, use the SVN perspective by clicking on <key>Window</key>-<key>Perspective</key>-<key>Open Perspective</key>-<key>Other</key>, selecting "SVN Repository Exploring", and clicking on <key>OK</key>. |
- Click on {{eclipse_new-repository-location.gif}}. | - Click on {{eclipse_new-repository-location.gif}}. |
- After the dialog box opens, enter the URL in the "URL:" field. | - After the dialog box opens, enter the URL in the "URL:" field. |
The plugin will need to authenticate with ''%%stu%%'' every time an operation is performed, and this can be quite inconvenient. There are two ways around this. | The plugin will need to authenticate with ''%%stu%%'' every time an operation is performed, and this can be quite inconvenient. There are two ways around this. |
| |
* You may (it varies with the plugin) be given the opportunity to <key>Save authentication</key> information in which case you will not be prompted for it in the future. In this case, you will be asked to create a master Eclipse password if you have not done so already. | * You may (it varies with the plugin) be given the opportunity to <key>Save authentication</key> information in which case you will not be prompted for it in the future. In this case, you will be asked to create a central Eclipse password if you have not done so already. |
| |
* You can create an [[student:utilities:start:keypairs | SSH Key Pair ]] to avoid having to repeatedly enter authentication information. In this case, you will need to tell Eclipse to use your private key by clicking on <key>Preferences</key>+<key>General</key>+<key>Network Connections</key>+<key>SSH2</key> and entering the path and file name on the ''%%General%%'' tab. | * You can create an [[student:utilities:start:keypairs | SSH Key Pair ]] to avoid having to repeatedly enter authentication information. In this case, you will need to tell Eclipse to use your private key by clicking on <key>Preferences</key>-<key>General</key>-<key>Network Connections</key>-<key>SSH2</key> and entering the path and file name on the ''%%General%%'' tab. |
| |
In either case, **should not save your authentication information on a "public" machine**. | In either case, **should not save your authentication information on a "public" machine**. |
- When the dialog box appears, select the appropriate repository type (i.e., SVN) and click on <key>Next</key>. | - When the dialog box appears, select the appropriate repository type (i.e., SVN) and click on <key>Next</key>. |
- When the next dialog box appears, check "Use existing repository location", select the appropriate location, and click <key>Next</key>. | - When the next dialog box appears, check "Use existing repository location", select the appropriate location, and click <key>Next</key>. |
- Select "Simple Mode". (Note: This will make it harder to create branches but easier to use the trunk.) | - If prompted to choose a mode, select "Simple Mode". (Note: This will make it harder to create branches but easier to use the trunk.) |
- Click on <key>Finish</key>. | - Click on <key>Finish</key>. |
| |