Hi All,

 

         We are using Jboss BRMS web interface(drools-jbrms.war) deployed on jboss-4.2.1.GA app server to generate .pkg files from drl and xls(for decision tables) files

     Necessary jars (application dependent) also uploading as model archive as available in the interface.

   After generating .pkg files we are uploading those into database by using batch script.

    Now our requirement is we like do the .pkg file creation through ant script.I have searched and tried out using drools-ant task  but not able to get the proper results.

    Is there any solution for that?

                        

                          <?xml version="1.0"?>

 

                            <project default="rules" basedir="." name="createpackage">

                            

                         <path id="rules.lib" >

                        <pathelement location="drools-ant-4.0.2.jar" />

                        <pathelement location="drools-compiler-4.0.3.jar" />

                        <pathelement location="drools-core-4.0.3.jar" />

                        <pathelement location="drools-decisiontables-4.0.2.jar" />

                        <pathelement location="drools-jsr94-4.0.2.jar" />

                        <pathelement location="janino-2.5.10.jar" />

                        <pathelement location="core-3.2.3.v_686_R32x.jar" />

                        <pathelement location="jsr94-1.1.jar" />

                        <pathelement location="jxl-2.4.2.jar" />

                        <pathelement location="mvel14-1.2.8.jar" />

                        <pathelement location="xercesImpl-2.4.0.jar" />

                        <pathelement location="xml-apis-1.0.b2.jar" />

                        <pathelement location="xpp3_min-1.1.3.4.O.jar" />

                        <pathelement location="ant-1.6.5.jar" />

                        <pathelement location="antlr-runtime-3.0.jar" />

                        <pathelement location="ant-nodeps-1.6.5.jar" />

            </path>

 

<taskdef name="rulebase" classname="org.drools.contrib.DroolsCompilerAntTask" classpathref="rules.lib"/>

 

     <target name="rules" >

         <rulebase

             srcdir="."

             tofile="ProductConflictRules.pkg"

                                     classpathref="rules.lib" >

               <include name="*.drl" />

                                     

                </rulebase>

     </target>

 

 </project>

 

 The above script is giving error like

BUILD FAILED

   build.xml:66: RuleBaseTask failed: Unable to load dialect 'org.drools.rule.builder.dialect.java.JavaDialectConfiguration:java'

 

All the necessary jars are there in the classpath.

 Is it anyway to automate using ant the whole process done by BRMS webcleint itself ?

 

 

Thanks and Regards -
Shreekanta Prasad
Banglore ,India