Related Recipes: AccuRev + JIRA + Eclipse (using Mylyn)
Love Ruby? Use Eclipse? Got AccuRev? Here’s a recipe guaranteed to get the mixture setup… stirred, not shaken.
Install Applications
- Install AccuRev 4.5. download. Follow the executable wizard.
- Install Eclipse 3.2. download. Follow the executable wizard.
- Install Ruby 1.8. download. Follow these instructions.
Install AccuRev Plugin in Eclipse
- Help –> Software Updates –> Find/Install
- Select ‘Seach for new features to install’
- Create ‘New Remote Site’ named AccuRev with URL http://www.accurev.com/download/eclipseupdate
- Checkbox ‘AccuRev’ and select Finish
Install Ruby Plugin in Eclipse
- Help –> Software Updates –> Find/Install
- Select ‘Search for new features to install’
- Create ‘New Remote Site’ named Ruby with URL http://updatesite.rubypeople.org/release
- Checkbox ‘Ruby’ and select Finish
Lets Rock! Now that the software is installed, lets put it to work. Here are three use-cases depending on how you need to work on your project.
Use Case: New Eclipse project / New AccuRev workspace. Starting from scratch? Have ruby code already in a depot? Do you know which stream configuration you want to work from? Then this is for you…
- File –> New –> Project –> AccuRev –> Checkout from AccuRev
- Choose “Create new AccuRev workspace and Eclipse project”
- Follow the wizard to specify depot/stream/project/workspace names and directory location. Select ’simple project’ when prompted for project type.
- Select project in navigator. Project –> Add Ruby Nature. This will declare the project as a ruby project.
Use Case: New Eclipse Project / Existing AccuRev workspace. Already have an AccuRev workspace with your ruby code? Just need to setup a new eclipse project? Then this is for you…
- File –> New –> Project –> AccuRev –> Checkout from AccuRev
- Choose “Create new Eclipse project in existing AccuRev workspace”
- Follow the wizard to select the workspace and name the project. Select ’simple project’ when prompted for project type.
- Optionally, the project may need to be declared a ‘ruby project’. This may already have been done. Either way, select project in navigator. Project –> Add Ruby Nature.
Use Case: Existing Eclipse Project / Existing AccuRev workspace. Already have an eclipse ruby project? Is your project already on disk in an AccuRev workspace? Then this is for you…
- File –> Import –> General –> Existing Projects into Workspace
- Select AccuRev workspace directory containing the Eclipse .project file
- Checkbox the projects found then “Finish”
- Setup AccuRev for the project with: RClick Project –> Team –> Share –> AccuRev
Test either Use Case by creating a new Ruby Class. If you don’t get any errors, so far so good. Otherwise, if the ruby nature is not set, the new class wizard will warn you when you enter the class name. Now verify the new class shows up in Team –> AccuRev Searches –> External search view. This verifies that AccuRev is connected.
I hope this batch of recipes helps you get up and running flawlessly with AccuRev + Eclipse + Ruby in no time!
For those new to Ruby+Eclipse, our friends at IBM have a great tutorial. Also, the folks at O’Reilly have a great article about using Rails+Eclipse.
/happy coding/ – dave