How to rename a MOLGENIS project in Eclipse
Table of Contents
We assume here that you don't have a project yet. Otherwise you can move immediately to step 3.
Step 1: Checkout MOLGENIS distro
To check out MOLGENIS
- Open the SVN perspective
- Right-click to add new SVN http://www.molgenis.org/
- Browse to http://www.molgenis.org/svn/molgenis_distro/3.3
- Right-click and choose check-out
- IMPORTANT: use the name that you want it to have
(Optional) if you have not checked out molgenis core then
- Browse to http://www.molgenis.org/svn/molgenis/3.3
- Right-click and choose check-out
- IMPORTANT: don't rename this project as the distro expects it
Step 2: Disconnect from SVN
To disconnect from SVN:
- Disconnect your project from svn by right-click -> team -> disconnect
- IMPORTANT: if it asks to remove svn stuff, tick yes! This allows you to put it in svn as new project later
- Trick: If your .svn metadata can somehow not be removed and it corrupts your project (preventing you from performing IDE actions), execute the following unix/mac command in the proper project folder: sudo find . -name .svn -print0 | xargs -0 rm -rf
Step 3: Rename the web address
To change the web path from /molgenis_distro to /xyz
- On your hard drive open the file '.settings/org.eclipse.wst.common.component' in your project
- Change line 3 from <wb-module deploy-name="molgenis_distro"> to <wb-module deploy-name="xyz">
- Change line 14 from <property name="context-root" value="molgenis_distro"/> to <property name="context-root" value="xyz"/>
- Save
- Right-click on your project and refresh
NB You can alternatively see this in Eclipse if you change the 'filter' of on your project viewer. You can find a small down triangle on the top of you panel that allows you to set filters. Remove the .* filter.
Step 4: Regenerate your MOLGENIS as usual
- edit xml
- run MolgenisGenerate? and MolgenisUpdateDatabase?
- right-click -> refresh
- right-click -> run on server