I assume you know Jia Zhang, as she asked me the exact same question a
few days ago in personal emails.


For the benefit of the public, here's my response, with a few additions:

On Wed, Apr 6, 2011 at 16:38, John Alexander
<[email protected]> wrote:

> My question is:  How do I run compiled plugins inside of the development
> version of Taverna 2.2?

When running the workbench-dev plugins are not activated, as Taverna
is running with a regular all-in-one classpath. The Raven plugin
system is not running when running the 'Developer workbench' like
this.


To include the SADI activity, the simplest is to copy those two
<dependency> blocks from the plugin file and add it to <dependencies>
of the pom.xml from where you are running the -dev workbench. Within
Eclipse, this will add the SADI plugin to the direct classpath of
Taverna.

Note that if you add additional activities in this way you are likely
to find some of them not working, as you will end up with conflicting
JARs which contain the same classes in different versions.


If this pom is part of another plugin you are making (like in the
plugin tutorial), use <scope>test</scope> for each <dependency> to
avoid re-exporting the SADI activity from the new plugin. If you have
checked out workbench-dev directly, no need to scope.


Now in the case of your new plugin (which I guess you must be making
since you are running the developer workbench) actually needing to use
the SADI code directly somehow, then you would need to add the
sadi-activity <dependency> (but not sadi-activity-ui) to the
<dependencies> section pom.xml of your-activity/pom.xml. Note that
this would implicitly also include various dependencies which
sadi-activity declares to the classpath of your plugin.


BTW - what is your development intending to do with the SADI plugin..?

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

------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
taverna-hackers mailing list
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/
Developers Guide: http://www.taverna.org.uk/developers/

Reply via email to