<DIV style="font-family:Verdana, sans-serif; font-size:10pt;"><DIV>Hi all,</DIV>
<DIV>I am using Drools IDE in Eclipse 3.2. </DIV>
<DIV>While I am creating the Rules project using Drools IDE, I am having the following folfder structur:</DIV>
<DIV>SampleRule >> src >> java </DIV>
<DIV> >>rules </DIV>
<DIV> </DIV>
<DIV>I am crerating the package, so that:</DIV>
<DIV>SampleRule >> src >> java >> com >> sample</DIV>
<DIV> >>rules </DIV>
<DIV> </DIV>
<DIV>Whenever I am creating a new rule, it will ask for the package. I will give com.samlpe. It will be stored in </DIV>
<DIV>Sample >> src >> rules >> myrule.drl (without com/sample/myRule.drl)</DIV>
<DIV> </DIV>
<DIV>I want to add certain packages into the ruleBase. In the refernece manual, it's given as below:</DIV><PRE>ruleBase.addPackage( pkg ); // Add a package instance
ruleBase.addPackage( "org.com.sample" ); // remove a package, and all its parts, by it's namespace
ruleBase.removeRule( "org.com.sample", "my rule" ); // remove a specific rule from a namespace</PRE>
<DIV>But the addPackage won't accept the String argument and it's expecting package argument.</DIV>
<DIV>For example: I want to add/remove certain packages, how to acheive that.</DIV>
<DIV> </DIV>
<DIV>I have two sets of packages: com.sample and com.example</DIV>
<DIV>com.sample package is having 10 drl files.</DIV>
<DIV>com.example package is having 10 drl files.</DIV>
<DIV> </DIV>
<DIV>If i want to add only com.sample package, how can I achieve?</DIV><BR> <BR><HR>Get email for your site ---> http://www.everyone.net</DIV>