Mike,<br><br>For question #1, check out the Javadoc for RuleAgent. The class header provides some decent documentation. As far as what it is reading, it takes the path specified by dir and scans that directory. <br><br>dir = new File(d);<br>
if (!(dir.isDirectory() && dir.exists())) {<br> throw new IllegalArgumentException("The directory " + d<br> + "is not valid.");<br> }<br> <br>
scanner = new FileScanner();<br> scanner.setFiles( dir.listFiles() );<br><br><br><br><div class="gmail_quote">On Tue, Nov 25, 2008 at 8:58 AM, J Michael Dean <span dir="ltr"><<a href="mailto:mdean77@comcast.net">mdean77@comcast.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Two questions. I am interested in using RuleAgent but with the file or dir property rather than the URL. However, it is not clear to me where the directories or files must actually be located. If I use<br>
<br>
dir=/<br>
<br>
then the DirectoryScanner is invoked and claims to have found some number of files, but I have no idea WHERE it is scanning. If I add anything like dir=/foo then I get an invalid directory exception.<br>
<br>
If I try file=/foo.pkg then I get exception that this is invalid file.<br>
<br>
Question 1 - is there an example somewhere that can help me understand where I am going off the track? I am working Eclipse environment.<br>
<br>
Question 2 - if using the BRMS and URL, can there be a backup dir, file, or cache option that is in the classpath rather than a specific directory? I would like to distribute an Eclipse application that has a rule package deployed, but that overrides this with the URL if available.<br>
<br>
Thanks.<br>
<br>
- Mike<br>
<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br>