<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16809" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=848490021-21042009>I have
a model defined as a DRL file, and a ruleset that is in excel. I am attempting
to compile the two to make a .pkg file to be read by a rulesagent.
</SPAN></FONT><FONT face=Arial color=#0000ff size=2><SPAN
class=848490021-21042009>The excel file depends on the DRL file - the DRL file
is the model. </SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=848490021-21042009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=848490021-21042009>When
the ant compile runs, the Excel file is read first, it throws an error because
the model is not compiled. Is there a way I can make the excel file refer to the
DRL file or have a compile time dependency to have the DRL file be compiled
before the Excel file? For brevity, here's how my relevant ant code looks
-</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=848490021-21042009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=848490021-21042009><path
id="compiler.classpath"><BR> <fileset dir="../${libraries}"
includes="**/*.jar" /><BR> </path></SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=848490021-21042009> <taskdef name="compiler"
classname="org.drools.contrib.DroolsCompilerAntTask"
classpathref="compiler.classpath" /></SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=848490021-21042009> <target
name="rules"><BR> <compiler srcdir="../${rulesDirectory}"
<BR> tofile="../${buildDirectory}/${projectName}_rules.pkg"
<BR> binformat="package"><BR> <!--<include
name="*.xls" /> --><BR> <include name="*.drl"
/><BR> <include name="*.brl"
/><BR> <include name="*.xml"
/><BR> <include name="*.dslr"
/><BR> </compiler><BR> </target></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=848490021-21042009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=848490021-21042009>Any
pointers?</SPAN></FONT></DIV></BODY></HTML>