Using Taverna source code with Eclipse on Mac OS

From:     soiland-reyes@cs.manchester.ac.uk
Subject:  Re: [Taverna-users] Installing Taverna on Eclipse on Windows
Date:     30 September 2008 6:51:36 PM
To:       taverna-hackers@lists.sourceforge.net
Cc:       taverna-users@lists.sourceforge.net
Reply-To: taverna-users@lists.sourceforge.net

PS! Note that this discussion is probably better suited for the
taverna-hackers mailing list as it has to do with how to use the
Taverna code base and APIs, not constructing workflows.


On Mon, Sep 29, 2008 at 02:28, Yoichi Takayama <yoichi@melcoe.mq.edu.au> wrote:

Main Maven/Eclipse reference is this link:

Hi.

The myGrid team does not recommend to use the outdated eclipse: plugin
for maven, as it seems to struggle with projects of our size.

Instead we recommend to use the m2eclipse plugin for Eclipse -
http://m2eclipse.codehaus.org/


I've checked and unfortunately we don't have any online howto for
setting up Eclipse for Taverna 1, but I'll try to make one in the next
few days.

It will be based on this guide for t2 which is worth to check out -
http://www.mygrid.org.uk/dev/wiki/display/developer/Check+out+t2


In the mean time, here's a quick version:

1. Use the latest Eclipse 3.3 or 3.4

2. Install the newest m2eclipse through the Software Update function
in Eclipse, adding the site http://m2eclipse.sonatype.org/update/

3. Go to the "CVS repository browsing" perspective. Right click to add
a new repository for Taverna, and paste into the Host-field:
  :pserver:anonymous@taverna.cvs.sourceforge.net:/cvsroot/taverna
  Eclipse should fill in Repository path, User and select pserver,
see http://www.mygrid.org.uk/dev/wiki/download/attachments/1376343/add_cvs_repository.png

4. Right click on the taverna1.0 (sic) module. Select "Check out"

5. Go to the Java perspective, wait for the CVS checkout to finish
(this can take a while on the first run)

6. Right click on the taverna project and select "Maven -> Enable
dependency management"
   Right click again and do "Maven -> Enable nested modules" and
"Maven -> Disable workspace resolution"

7. Right click and select "Maven -> Update source folders" (old
version of m2eclipse) / "Update project configuration"

8. After Maven has downloaded various dependencies, you should get a
set of source folders.

9. Open the class org.embl.ebi.escience.scuflui.workbench.Workbench,
for instance by using Navigate -> Open Type and typing in Workbench.

10. Click Run -> Run Configuration. Select "Java applicaton" and click
the little New-icon up in the left corner.

11. hang on, you'll need to fill in a few properties. Flip to
Arguments tab, and under "VM arguments", paste:

-Draven.eclipse=true
-Dtaverna.dotlocation=/Applications/Taverna.app/Contents/MacOS/dot
-Dtaverna.startup=${project_loc:taverna1.0}/src/main/resources/workbench
-Dtaverna.home=${system_property:user.home}/.taverna-snapshot -Xmx512m
-Draven.repository.0=file:${system_property:user.home}/.m2/repository/

Modify the paths to reflect your OS/home directory. The dotlocation is
the path to the dot program, in Linux this would most often be
/usr/local/bin/dot or /usr/bin/dot. In Windows and Mac you can find
dot inside the binary Taverna distribution, the example above shows
how to do this on a Mac, for windows this would be something like
c:\taverna\bin\win32i386\dot.exe

Likewise your raven.repository.0 should point to where mvn install
puts it's JARs when doing mvn install, this is normally just
.m2/repository in your home directory.

Notice that taverna.home is set to a different directory to avoid
interfering with running Taverna normally.

The taverna.startup is set to the src/main/resources/workbench
directory inside the source code, you could also set this to the root
of an unzipped Taverna installation, basically this directory is just
used for finding conf/mygrid.properties and friends.


Note that when running Taverna through Eclipse in this fashion you
might get duplicates on your classpath resulting in double entries of
Perspectives and certain actions in the menues. Also some processors
might not work as when running Taverna normally through runme.bat /
Raven. The reason for this is that different processors depend on
different versions of third-party dependencies such as Axis, but when
running Taverna through Eclipse only one of those versions will be
selected and used by all processors.




-- 
Stian Soiland-Reyes, myGrid team
School of Computer Science
The University of Manchester

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
taverna-users mailing list
taverna-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/taverna-users
Documentation: http://www.mygrid.org.uk/usermanual1.7/
FAQ: http://www.mygrid.org.uk/wiki/Mygrid/TavernaFaq
Biological Services: http://www.mygrid.org.uk/wiki/Mygrid/BiologicalWebServices
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.