My shop is still on 5.2.0.Final, but FWIW I did get build.xml working to
compile rules files (in my case it was for decision tables).  I remember it
took a while to get all the classpaths correct.  Below is a snippet from my
build.xml; of course your jars will be different.  Also, I don't know if the
Drools ant task has been changed for 5.4.  But maybe you can get some ideas
from this:

<target name="-pre-dist">
        <property name="droolsPath" value="${build.web.dir}/WEB-INF/lib" />
        <path id="drools.classpath" >
                <pathelement 
location="${droolsPath}/drools-ant-5.2.0.Final.jar" />
                <pathelement 
location="${droolsPath}/knowledge-api-5.2.0.Final.jar" />
                <pathelement 
location="${droolsPath}/drools-core-5.2.0.Final.jar" />
                <pathelement 
location="${droolsPath}/drools-compiler-5.2.0.Final.jar" />
                <pathelement
location="${droolsPath}/drools-decisiontables-5.2.0.Final.jar" />
                <pathelement 
location="${droolsPath}/drools-templates-5.2.0.Final.jar" />
                <pathelement location="${droolsPath}/antlr-2.7.7.jar" />
                <pathelement location="${droolsPath}/antlr-3.3.jar" />
                <pathelement location="${droolsPath}/antlr-runtime-3.3.jar" />
                <pathelement location="${droolsPath}/ecj-3.5.1.jar" />
                <pathelement location="${droolsPath}/jxl-2.6.10.jar" />
                <pathelement location="${droolsPath}/mvel2-2.1.Beta6.jar" />
        </path>
        <taskdef name="compiler"
classname="com.abclegal.rules.utility.DroolsCompilerAntTask"
classpathref="drools.classpath"/>
        <path id="model.classpath" >
                <pathelement 
location="${build.web.dir}/WEB-INF/lib/abc-domain.jar" />
                <pathelement 
location="${build.web.dir}/WEB-INF/lib/abc-service-api.jar"
/>
                <pathelement
location="${build.web.dir}/WEB-INF/lib/commons-logging-1.1.1.jar" />
                <pathelement
location="${build.web.dir}/WEB-INF/lib/commons-collections-3.2.1.jar" />
        </path>
        <echo>Compiling rules spreadsheets to binary package file</echo>
        <compiler srcdir="${build.web.dir}/packages/venue"
tofile="${build.web.dir}/packages/venue.pkg"
                binformat="package" bintype="knowledge" 
classpathref="model.classpath">
                <include name="*.xls" />
        </compiler>
</target>



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Upgrade-to-5-4-tp4019321p4019324.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to