This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
private:installeclipsewithsvn [2020/06/15 15:09] coligny |
private:installeclipsewithsvn [2020/09/11 17:54] coligny |
||
---|---|---|---|
Line 12: | Line 12: | ||
</box> | </box> | ||
- | **1. Install Eclipse (download the last version for Java developers)** | + | **1. Install Eclipse (download the last version for Java developers, **Neon** is a working release with Subversive available (see below))** |
* Download Eclipse archive, e.g. from here : http://www.eclipse.org/downloads/ (choose your system and 32 / 64 bits). | * Download Eclipse archive, e.g. from here : http://www.eclipse.org/downloads/ (choose your system and 32 / 64 bits). | ||
Line 20: | Line 20: | ||
**2. Install the SVN plugin** | **2. Install the SVN plugin** | ||
- | |||
- | Note: alternate installation procedure for Subversive (2020), see https://www.eclipse.org/subversive/downloads.php | ||
* Eclipse > Help > Install New Software > Work with: 'Indigo - http://download.eclipse.org/releases/indigo' (adapt if you installed another version of Eclipse, like Juno or Kepler). | * Eclipse > Help > Install New Software > Work with: 'Indigo - http://download.eclipse.org/releases/indigo' (adapt if you installed another version of Eclipse, like Juno or Kepler). | ||
* Expand the entry 'Collaboration'. | * Expand the entry 'Collaboration'. | ||
* Select all the entries beginning by **'Subversive'** (e.g. 4 entries). | * Select all the entries beginning by **'Subversive'** (e.g. 4 entries). | ||
+ | |||
+ | |||
+ | <box blue round 80% |If the **Subversive entries** are missing> | ||
+ | |||
+ | For **new versions of Eclipse**, the Subversive entries may not exist (example: for Eclipse 2018-12, when choosing Eclipse > Help > Install New Software > Work with: '2018-12 - http://download.eclipse.org/releases/2018-12', the 'Collaboration' entry contains no entry related to 'Subversive'). In that case:\\ | ||
+ | * Click on 'Add...' button (beside 'Work with' text field).\\ | ||
+ | * Fill in the 'Location' text field with the URL of the Subversive's latest stable build, for example: http://download.eclipse.org/technology/subversive/4.0/update-site/. The URL of the Subversive's latest stable build is available on this link: https://www.eclipse.org/subversive/latest-releases.php.\\ | ||
+ | * Fill in the 'Name' text field (for example: Subversive 4.0).\\ | ||
+ | * Click on 'Add' button to validate.\\ | ||
+ | * Select all entries (they are all related to 'Subversive').\\ | ||
+ | * Continue the installation process like described above. | ||
+ | </box> | ||
+ | |||
+ | |||
+ | |||
* Finish installation. | * Finish installation. | ||
* Restart Eclipse when proposed. | * Restart Eclipse when proposed. | ||
* At start time, you should be proposed the **Subversive Connector Discovery**. | * At start time, you should be proposed the **Subversive Connector Discovery**. | ||
- | For **new versions of Eclipse**, the Subversive entries may not exist (example: for Eclipse 2018-12, when choosing Eclipse > Help > Install New Software > Work with: '2018-12 - http://download.eclipse.org/releases/2018-12', the 'Collaboration' entry contains no entry related to 'Subversive'). In that case:\\ | ||
- | - Click on 'Add...' button (beside 'Work with' text field).\\ | ||
- | - Fill in the 'Location' text field with the URL of the Subversive's latest stable build, for example: http://download.eclipse.org/technology/subversive/4.0/update-site/. The URL of the Subversive's latest stable build is available on this link: https://www.eclipse.org/subversive/latest-releases.php.\\ | ||
- | - Fill in the 'Name' text field (for example: Subversive 4.0).\\ | ||
- | - Click on 'Add' button to validate.\\ | ||
- | - Select all entries (they are all related to 'Subversive').\\ | ||
- | - Continue the installation process like described above. | ||
+ | <box red round 80% |If the **Subversive Connector Discovery** is not proposed> | ||
+ | Install manually the SVN SVNkit connectors: | ||
- | <box blue round 80% |If the **Subversive Connector Discovery** is not proposed> | + | Window -> Preference -> Team -> SVN click > SVN Client > Get Connectors. |
- | /*Just remove .metadata folder in your workspace directory and restart | + | |
- | then */ | + | Warning: if the SVN connectors are not installed, it might be impossible to tell Eclipse the project is under SVN version control lower. |
- | Window -> Preference -> Team -> SVN click. It should appear. | + | |
</box> | </box> | ||
+ | |||
* Choose the connector you need. | * Choose the connector you need. | ||
Line 102: | Line 109: | ||
* SVN > Next. | * SVN > Next. | ||
* Check 'Utiliser réglages du Projet' (if enable) and select the proposed line in the table mentioning 'http://amap-dev.cirad.fr/svn/capsis/trunk', or check 'Créer un emplacement en utilisant les réglages du projet'. | * Check 'Utiliser réglages du Projet' (if enable) and select the proposed line in the table mentioning 'http://amap-dev.cirad.fr/svn/capsis/trunk', or check 'Créer un emplacement en utilisant les réglages du projet'. | ||
+ | |||
+ | {{:private:connecter-a-svn-en-utilisant-les-reglages-du-projet.png?200|Connect-to-svn-repository-with-the-project-settings}} | ||
+ | {{:private:emplacement-du-referentiel-svn.png?200|repository-location}} | ||
+ | |||
+ | |||
* Next. | * Next. | ||
* Fill in username and password (those obtained after having created an amap-dev account, see: http://capsis.cirad.fr/capsis/documentation/svn, section '2. Create an amap-dev account'). | * Fill in username and password (those obtained after having created an amap-dev account, see: http://capsis.cirad.fr/capsis/documentation/svn, section '2. Create an amap-dev account'). | ||
* Finish. | * Finish. | ||
+ | |||
+ | <box blue round 80% |**Check your SVN plugin**> | ||
+ | |||
+ | If the SVN plugin is not installed well in Eclipse, refactoring (renaming, moving in another package) a class in Eclipse will not be understood at commit time (resulting in 'missing' classes and duplicate classes coming back with the original name or location on SVN update). | ||
+ | |||
+ | To check the SVN plugin installation is Ok, try this: | ||
+ | |||
+ | * In Eclipse, open a class of your project and Refactor > Rename it (e.g. by appending a '1' to its name) | ||
+ | * Save the file | ||
+ | * Open SmartSVN and check the 'Files' panel after refreshing | ||
+ | * Check SmartSVN sees the change you did under Eclipse : you should see a line for the renamed file (don not commit) | ||
+ | * If so, the Eclipse plugin is ok, you can Undo the name change in Eclipse. | ||
+ | |||
+ | **If SmartSVN does not not detect the name change, you can not use the Refactor tool in Eclipse** to rename or move classes. You must first complete the svn plugin correct installation. | ||
+ | |||
+ | </box> | ||
**4. Configure the project** | **4. Configure the project** | ||
See: http://capsis.cirad.fr/capsis/documentation/code_editor, section Eclipse > Build Capsis. | See: http://capsis.cirad.fr/capsis/documentation/code_editor, section Eclipse > Build Capsis. |