[jboss-user] [Beginners Corner] - Ant task to compile Drools Rulebase
jamiec
do-not-reply at jboss.com
Tue Aug 21 05:03:54 EDT 2007
Having problems writing a custom ant task to compile and serialize our Rule Base.
Issue is with setting the classpath for the custom ant task.
The basic taskdef looks like this.....
'<'taskdef name="preCompileRules"
classname="com.xxxxx.xxxxx.rules.ant.SerializeRules" classpath="${rulecompile.sys.classpath}">
All the required jar files are within the ${rulecompile.sys.classpath} but this task will fail on cannot resolve imports.....e.g. org.drools.spi.KnowledgeHelper
If I dump all the required jar in the ant/lib library the task runs ok. This makes me think that the isue is down to setting up the appropriate classpaths for my custom ant task (I'm not well versed in ant, but haven't seen anything on this within the ant docs).
Any help would be much appreciated
Thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076156#4076156
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076156
More information about the jboss-user
mailing list