FusionForge

Mylyn

From FusionForge Wiki
Jump to: navigation, search

How to connect Eclipse / Mylyn to FusionForge trackers

With the dedicated FI-Ware SOAP connector

There's a dedicated Mylyn connector available for FusionForge, developped by the FI-Ware project.

Get it at : http://forge.fi-ware.eu/frs/?group_id=15 (see the "FusionForge Connector User Manual" PDF manual for instructions)

With this version you can manage tickets and task directly from Eclipse, in line with the traditional Mylyn approach.

The connector relies on the SOAP interface of FusionForge.

I added a git repository build from the fi-ware files :

git clone http://coclico.fusionforge.org/git/eu.fiware

With the dedicated experimental OSLC connector

I also added an experimental OSLC plugin here

git clone http://coclico.fusionforge.org/git/fr.francetelecom.coclico

Alternate method, with a Web template connector

Install Eclipse

There are various way to do this

apt-get install eclipse

or get a zip or a tarball at http://eclipse.org/downloads/, take eclipse classic

Install Mylyn

Quick guide, the full guide is at http://www.eclipse.org/mylyn/downloads/

Start Eclipse, in the top menu choose

Help >> Install New Software... >> 

In "Work with" add :

http://download.eclipse.org/tools/mylyn/update/e3.4 [Doesn't work]

select all the mylyn products that will appear, and accept the license agreement when asked

Do again "Work with" with :

http://download.eclipse.org/tools/mylyn/update/incubator [Doesn't work]

and select also all products, and accept the license agreement when asked

You should now be ready to use Mylyn and follow the next step after eclipse restart

Parameters to use for a Fusionforge tracker

Open the planning perspective

Window >> Open Perspective >> Other >> Planning >> OK

Open the Task Repositories view

Window >> Show View >> Other >> Tasks >> Task Repositories

This will open a new Tab, In this tab right click on Tasks and choose

Add Task Repository 

Then choose

Web Template (Advanced) >> Next

You will be asked a set of parameters, fill like this :

Server : http://fusionforge.org
Label: FusionForge Feature Requests

In Additionnal settings fill:

atid=114
group_id=6

In Advanced Configuration

Task URL : ${serverUrl}/tracker/?func=detail&group_id=${group_id}&atid=${atid}&aid=
New Task URL : ${serverUrl}/tracker/?func=add&group_id=${group_id}&atid=${atid} 
Query Request URL : ${serverUrl}/tracker/?group_id=${group_id}&atid=${atid} [GET]
Query Pattern : <td><a href="/tracker/index.php\?.+?aid=({Id}.+?)&.+?atid=.+?">({Description}.+?)</a></td><td>({Owner}.+?)</td><td>({Type}.+?)</td><td>({Status}.+?)</td></tr>
Login Request URL : ${serverUrl}/account/login.php?form_key=${loginToken}&return_to=/&form_loginname=${userId}&form_pw=${password}&login=Login [GET]
Login Form URL : ${serverUrl}/account/login.php
Login Token Pattern : name="form_key" value="(.+?)"

The login stuff don't seem to work with ssl. When asked to add a new query tell yes, you should now see a list of feature request in the Task List tab and when you click on one Item, it should display in a new tab

The result

Fusionforge feature requests.jpg


How could we make a BugzillaSimulator

Not to have to develop any plugin it could be interesting to simulate buzilla behaviour, so we made some traffic analyse to understand how this works. We analyzed for this network trafic when setting up a bugzilla task in mylyn using wireshark.

Add Task repository

Add task.jpg

New Query

New query.jpg

Task View

New Task

New task.jpg

How to compile Mylyn

How to compile Mylyn is described in the Contributor Reference I describe here the detailled operation I made

Setup Eclipse

  • It is recommended to take the latest release from Eclipse milestone release, I took this one [1] at the moment I write
  • Setup execution environment to J2SE 1.5 in Window -> Preferences -> Java -> Installed JREs -> Execution Environments.

SetupExecEnv.png

Checkout the source code

  • The git repositories are listed here [2]
  • Use the Git repositories view

GitRepositories.png

Import checkout-ed repositories as project

  • In the git repositories view, right click on each repositories and choose "Import projects"

ImportRepositoriesAsProject.png

Setup target environment

  • go to Window > Preferences and open the Target Platform page.
  • Select one of the mylyn target definitions,

TargetPlatform.png

The operation will get a lot of files from various eclipse repositories

Suggested pointers / TO SEE list

  • A pending contrib of OSLC Java client [3]
  • Could be usefull [4]