Hi,<br><br>You can use below ant script to build .pkg files<br><br>&lt;project default=&quot;rules&quot; name=&quot;RuleProject&quot;&gt;<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &lt;!-- Uncomment this for Maven Runner --&gt;<br>&nbsp;&nbsp;&nbsp; &lt;property name=&quot;eclipsepath&quot;&nbsp; value=&quot;.&quot;/&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;!-- Uncomment this for Eclipse Runner&nbsp; --&gt;<br>&nbsp;&nbsp;&nbsp; &lt;!-- &lt;property name=&quot;eclipsepath&quot;&nbsp; value=&quot;../../../&quot;/&gt; --&gt;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &lt;path id=&quot;cheese.classpath&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;pathelement location=&quot;${eclipsepath}/build/Beans.jar&quot;/&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/path&gt;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&lt;target name=&quot;beans&quot; &gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;tstamp/&gt;<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;echo message=&quot;CREATING Beans JAR...&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;jar<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; jarfile=&quot;./build/Beans.jar&quot;&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;fileset<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dir=&quot;./bin&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/jar&gt;<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp; &lt;/target&gt;<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &lt;path&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;pathelement&gt;&lt;/pathelement&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/path&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;path id=&quot;drools.classpath&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;fileset dir=&quot;${eclipsepath}/build/lib/&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;include name=&quot;*.jar&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/fileset&gt;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;pathelement location=&quot;target&quot;/&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/path&gt;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &lt;taskdef name=&quot;compiler&quot; classname=&quot;org.drools.contrib.DroolsCompilerAntTask&quot;&nbsp; classpathref=&quot;drools.classpath&quot; /&gt;<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &lt;target name=&quot;rules&quot; &gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;compiler <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; srcdir=&quot;${eclipsepath}/src/main/rules&quot; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tofile=&quot;${eclipsepath}/target/cheese.pkg&quot;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; classpathref=&quot;cheese.classpath&quot;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; binformat=&quot;package&quot; &gt; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;include name=&quot;*.drl&quot; /&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;!-- &lt;include name=&quot;*.brl&quot; /&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;include name=&quot;*.xml&quot; /&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;include name=&quot;*.dslr&quot; /&gt; --&gt;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/compiler&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/target&gt;<br>&nbsp;&nbsp;&nbsp; <br><br>&lt;/project&gt;<br><br>reference <a href="http://www.nabble.com/Ant-compiler-task--td15906277.html#a15907448">http://www.nabble.com/Ant-compiler-task--td15906277.html#a15907448</a><br>
<br><br>Regards,<br>Ravi T<br>