Jess71p2 17 - 2.2.2 Dependencies among files Sometimes...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
2. The JessDE Developer's Environment 9 2.2.2. Dependencies among files Sometimes one *.clp file depends on code in some other *.clp file having been read first; for example, rules.clp might need the definitions in templates.clp . Without these definitions, rules.clp will appear to have syntax errors. To deal with this, you can use the require* function. "require*" lets you explicitly declare these dependencies. If a file rules.clp depends on Jess commands being executed from Java, you can deal with this by creating a special file just for this purpose (you might call it ruledepends.clp ). That special file can contain whatever declarations are needed to make rule.clp parse properly in the editor. If you add " (require* ruledepends) " to rules.clp , then this extra file will be parsed only if it's present, as it will be during development. When you deploy the code, you can simply not deploy ruledepends.clp , and allow rules.clp to get its declarations from Java code. The "require" mechanism replaces the "Source dependencies" property sheet from earlier
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/02/2010 for the course COMP 102 taught by Professor Smith during the Spring '10 term at California State University , Monterey Bay.

Ask a homework question - tutors are online