<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 &gt;&gt; src &gt;&gt; java </DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&gt;rules </DIV>
<DIV>&nbsp;</DIV>
<DIV>I am crerating the package, so that:</DIV>
<DIV>SampleRule &gt;&gt; src &gt;&gt; java &gt;&gt; com &gt;&gt; sample</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&gt;rules </DIV>
<DIV>&nbsp;</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 &gt;&gt; src &gt;&gt; rules &gt;&gt; myrule.drl (without com/sample/myRule.drl)</DIV>
<DIV>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV>If i want to add only com.sample package, how can I achieve?</DIV><BR>&nbsp;<BR><HR>Get email for your site ---&gt; http://www.everyone.net</DIV>