<!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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=848490021-21042009>&lt;path 
id="compiler.classpath"&gt;<BR>&nbsp;&nbsp;&lt;fileset dir="../${libraries}" 
includes="**/*.jar" /&gt;<BR>&nbsp;&lt;/path&gt;</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=848490021-21042009>&nbsp;&lt;taskdef name="compiler" 
classname="org.drools.contrib.DroolsCompilerAntTask" 
classpathref="compiler.classpath" /&gt;</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=848490021-21042009>&nbsp;&lt;target 
name="rules"&gt;<BR>&nbsp;&nbsp;&lt;compiler srcdir="../${rulesDirectory}" 
<BR>&nbsp;&nbsp;tofile="../${buildDirectory}/${projectName}_rules.pkg" 
<BR>&nbsp;&nbsp;binformat="package"&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;!--&lt;include 
name="*.xls" /&gt; --&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;include name="*.drl" 
/&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;include name="*.brl" 
/&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;include name="*.xml" 
/&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;include name="*.dslr" 
/&gt;<BR>&nbsp;&nbsp;&lt;/compiler&gt;<BR>&nbsp;&lt;/target&gt;</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=848490021-21042009></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=848490021-21042009>Any 
pointers?</SPAN></FONT></DIV></BODY></HTML>