On Wed, May 25, 2011 at 14:35, Stian Soiland-Reyes <[email protected]> wrote: > 2011/5/25 Mikołaj Rybiński <[email protected]>: > >> Is there a way to dynamically set Java properties for the classloader >> persistence shared with the whole workflow? > > > In general with Beanshell dependencies you need to make sure that the > classloader sharing setting is the same on each beanshell that is to > share the dependencies, and then only one of them need to actually > tick the boxes for which JARs are needed - as on execution time > Taverna will check all such beanshells to build the combined > classpath. > > However with the System classloader setting you do not necessarily > need to flip all the other beanshell scripts as the system classloader > is always inherited in the other settings - but then you need to make > sure that the Beanshell script(s) that run first have the correct > setting and JARs ticked. >
I rather thought of replacing: System.setProperty(...) + system classloader persistence with: ? + persistence shared with the whole workflow so that I wouldn't interfere with Taverna engine. Is there a piece of Beanshell code I can put in place of "?" ? Mikołaj ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ taverna-users mailing list [email protected] [email protected] Web site: http://www.taverna.org.uk Mailing lists: http://www.taverna.org.uk/about/contact-us/
