UNSUBSCRIBE
Kris Verlaenen wrote:
Keith,
This issue has already been fixed on the trunk version a while ago, as
a ProcessBuilder now reuses the package builder configuration. So it
will be part of the M3 release.
Kris
----- Original Message ----- From: "keithnielsen"
<[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, November 19, 2008 4:30 PM
Subject: [rules-users] PackageBuilderConfigurations and RuleFlows
Drools 5
I have the following code:
PackageBuilder packageBuilder = null;
Properties properties = new Properties();
properties.setProperty( "drools.dialect.java.compiler","JANINO" );
PackageBuilderConfiguration cfg = new PackageBuilderConfiguration(
properties );
//error was thrown here complaining about JDT Core not being on
classpath
prior to me creating
//configuration and adding Janino jar file to classpath of the plug-in
packageBuilder = new PackageBuilder(cfg);
.
.
.
packageBuilder.addRuleFlow(source);
I receive the "The Eclipse JDT Core jar is not in the classpath" error
message.
I was wondering why since I had created a PackageBuilderConfiguration
and
added it to the packagebuilder.
Stepping through the code it appears that the call stack looks like the
following:
packageBuilder.addRuleFlow(source);
ProcessBuilder.addProcessFromFile(.....);
PackageBuilderConfiguration.init(....);
Question is why is the ProcessBuilder not using the
PackageBuilderConfiguration created previously and set on the package
builder and instead creating a new instance? I don't have anywhere to
configure the ProcessBuilder since this is internal to the call on the
packageBuilder.addRuleFlow
Thanks
--
View this message in context:
http://www.nabble.com/PackageBuilderConfigurations-and-RuleFlows-Drools-5-tp20582230p20582230.html
Sent from the drools - user mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users
------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.175 / Virus Database: 270.9.9/1805 - Release Date: 11/22/2008 10:34 AM
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users