Title: RE: JESS: ant task for checking rule file syntax

If your script to be checked does not call (run) or (run-until-halt) and contains primarily deffunction/defquery/defrule statements you can try:

<target name="checksyntax">
   <java classname="jess.Main" classpath="jess.jar:other.jar">
      <arg value="${script}"/>
   </java>
</target>

<target name="compile">
   <antcall target="checksyntax">
      <param name="script" value="whatever.jess"/> <!-- or traditionally whatever.clp -->
   </antcall>
</target>

disclaimer: not tested...

All this does is run jess' Main with the script as an argument. Jess will parse the file and then exit.

Good luck!

alan

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On Behalf Of [EMAIL PROTECTED]
> Sent: Wednesday, July 07, 2004 1:28 PM
> To: [EMAIL PROTECTED]
> Subject: JESS: ant task for checking rule file syntax
>
>
>
> Hi,
>
> Is there any ant tool which can check the syntax in clip files?
>
>
> Thanks
> Bhaskar
>
> --------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users
> [EMAIL PROTECTED]' in the BODY of a message to
> [EMAIL PROTECTED], NOT to the list (use your own address!)
> List problems? Notify [EMAIL PROTECTED]
> --------------------------------------------------------------------
>

Reply via email to