It's not working as I need. Runtime is added to Drools preferences but
is not created. I need to accomplish exactly the same situation as when
user choose button Create a new Drools 5 Runtime.
It has to create new Drools Runtime and copy all needed jar files to
specified location and make this Drools runtime possible to use as
runtime for newly created Drools project.
I don't install any additional Drools runtime.
Can you help me with this please?
Kris Verlaenen wrote:
The runtimes setting is just a preference in the Eclipse preference
store. You can use
DroolsRuntimeManager.setDroolsRuntimes(DroolsRuntime runtimes) for
You should create a DroolsRuntime with:
- name: just give it some name
- path: the (top-level) directory that contains the Drools runtime jars
- default: set this to true if you only have one, you should always
have one default runtime
- jars: the list of jars that have been detected, best to leave this
null and then call DroolsRuntimeManager.recognizejars(DroolsRuntime
runtime) to populate the list
Hope this helps.
Andersen Max wrote:
> please start using jbosstools-dev for such dev related questions.
> Kris and/or Snjezana should be able to help you with this.
> On Apr 7, 2010, at 12:22, Vlado Pakan wrote:
>> I need to test Drools Tools using SWTBot.
>> To accomplish this I need to Create a new Drools 5 Runtime. User can
>> Create new Drools runtime choosing menu Window > Preferences >
>> Drools > Installed Drools Runtimes > Add... > Create a new Drools 5
>> Runtime. This open native dialog for new runtime directory selection.
>> Unfortunately SWTBot is not able to handle native dialogs so I'm not
>> able to use SWTBot to create this runtime but I need this it for
>> following SWTBot tests.
>> Can somebody give me instructions how to create Drools Runtime
>> programmatically from the test plugin?
>> Any help appreciated.
>> Thanks, Vlado.