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.
The excel file depends on the DRL file - the DRL file
is the model.
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
-
<path
id="compiler.classpath">
<fileset dir="../${libraries}"
includes="**/*.jar" />
</path>
<taskdef name="compiler"
classname="org.drools.contrib.DroolsCompilerAntTask"
classpathref="compiler.classpath" />
<target
name="rules">
<compiler srcdir="../${rulesDirectory}"
tofile="../${buildDirectory}/${projectName}_rules.pkg"
binformat="package">
<!--<include
name="*.xls" /> -->
<include name="*.drl"
/>
<include name="*.brl"
/>
<include name="*.xml"
/>
<include name="*.dslr"
/>
</compiler>
</target>
Any
pointers?