I think Mitch Christensen wrote: > > > FWIW, I'm trying to load rules from a location defined by a java system > property. For instance, I would like to do the following: > > C:\data > java jess.Main -Dapp.rules.dir=C:\app\server\rules > > Then I would like (batch) to read files relative to the app.rules.dir > property value. This allows me to separate my rules from my data files > (which reside under C:\data). > > I was intending on using 'before advice' in (batch) to prepend the > parameter value with the contents of the 'app.rules.dir' system > property.
Note that batch tries to find the named file in several places: the current directory first, and then failing that, along the CLASSPATH. So if your program could be started such that your app.rules.dir was on the CLASSPATH, then Jess would automatically find your rules files, without your doing anything. --------------------------------------------------------- Ernest Friedman-Hill Advanced Software Research Phone: (925) 294-2154 Sandia National Labs FAX: (925) 294-2234 PO Box 969, MS 9012 [EMAIL PROTECTED] Livermore, CA 94550 http://herzberg.ca.sandia.gov -------------------------------------------------------------------- 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] --------------------------------------------------------------------
