Re: [rules-users] Ant Task to pre-compile xls spreadsheet
Hi there thanks for the reply. I am unable to find the two abc jars, can you point me in the right direction for these? many thanks, -- View this message in context: http://drools.46999.n3.nabble.com/Ant-Task-to-pre-compile-xls-spreadsheet-tp3275067p3278239.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Ant Task to pre-compile xls spreadsheet
the path element where you see those jars is defining the path(s) to the jar(s) containing my company's domain object model, so you won't find those abc jars anywhere! you should change those entries to point to whatever jar file(s) contain your own domain model (the classes that are used in your rules). note that the id that I used for the example (model.classpath) is used in the compiler element (classpathref=model.classpath). This tells the compiler where to find the domain model when it compiles the rules. -- View this message in context: http://drools.46999.n3.nabble.com/Ant-Task-to-pre-compile-xls-spreadsheet-tp3275067p3278454.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Ant Task to pre-compile xls spreadsheet
hi all I am looking for a sample ant script which shows how an excel spreadsheet can be precompiled and also the dependencies on the class path that are required for it, can anyone poit me in the right direction? Thanks, -- View this message in context: http://drools.46999.n3.nabble.com/Ant-Task-to-pre-compile-xls-spreadsheet-tp3275067p3275067.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Ant Task to pre-compile xls spreadsheet
There is a good example in the Drools JBoss Rules 5.0 Developer's Guide chapter 11. I just got this working for my own build, here is my xml, which is part of a larger build script but at least will give you a sample: property name=droolsPath value=../../../shared / 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.0.drools2.jar / /path taskdef name=compiler classname=org.drools.contrib.DroolsCompilerAntTask classpathref=drools.classpath/ path id=model.classpath pathelement location=./build/web/WEB-INF/lib/abc-domain.jar / pathelement location=./build/web/WEB-INF/lib/abc-service-api.jar / pathelement location=./build/web/WEB-INF/lib/commons-logging-1.1.1.jar / /path target name=-pre-dist echoCompiling rules spreadsheets to binary package file/echo compiler srcdir=./web/packages/venue tofile=./web/packages/venue/venue.pkg binformat=package classpathref=model.classpath include name=*.xls / /compiler /target -- View this message in context: http://drools.46999.n3.nabble.com/Ant-Task-to-pre-compile-xls-spreadsheet-tp3275067p3276304.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users