<br><font size=2 face="sans-serif">If the files are not in your classpath
and you do not want to use http: access then I believe that leaves you
with file: using an absolute path.</font>
<br>
<br><font size=2 face="sans-serif">I'm not 100% sure of this, but that
is my understanding of the options that the Drools ChangeSet provides.</font>
<br><font size=2 face="sans-serif"><br>
</font><font size=3>Steve </font>
<br>
<br><tt><font size=2>rules-users-bounces@lists.jboss.org wrote on 01/18/2010
12:23:03 PM:<br>
<br>
&gt; [image removed] </font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Re: [rules-users] how to provide a relative path using file: in <br>
&gt; change-set and FileResource</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Pritam </font></tt>
<br><tt><font size=2>&gt; <br>
&gt; to:</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; rules-users</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; 01/18/2010 12:30 PM</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Sent by:</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; rules-users-bounces@lists.jboss.org</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Please respond to Rules Users List</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; <br>
&gt; I'm aware of the http access but in my case I'd like to use local
access<br>
&gt; under WebRoot/<br>
&gt; <br>
&gt; <br>
&gt; Esteban wrote:<br>
&gt; &gt; <br>
&gt; &gt; HTTP access is an option?<br>
&gt; &gt; <br>
&gt; &gt; On Mon, Jan 18, 2010 at 1:21 PM, Pritam &lt;infinity2heaven@gmail.com&gt;
wrote:<br>
&gt; &gt; <br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; classpath works only if the files are under WEB-INF/classes.
In my case,<br>
&gt; &gt;&gt; the<br>
&gt; &gt;&gt; files are directly under the WebRoot.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Any suggestions?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; SteveR685 wrote:<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; Pritam,<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; Try using &quot;classpath:&quot; instead of &quot;file:&quot;.
&nbsp;I've only used this when<br>
&gt; &gt;&gt; &gt; specifying the entire relative path to the file, I'm
not sure about<br>
&gt; &gt;&gt; &gt; referencing a directory.<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; &lt;change-set xmlns='http://drools.org/drools-5.0/change-set'<br>
&gt; &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'<br>
&gt; &gt;&gt; &gt; &nbsp;xs:schemaLocation='http://drools.org/drools-5.0/change-set.xsd'<br>
&gt; &gt;&gt; &gt; &nbsp; &nbsp;&lt;add&gt;<br>
&gt; &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;resource source='classpath:rules/...'
type='DRL' /&gt;<br>
&gt; &gt;&gt; &gt; &nbsp; &nbsp;&lt;/add&gt;<br>
&gt; &gt;&gt; &gt; &lt;/change-set&gt;<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; Steve Ronderos<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; rules-users-bounces@lists.jboss.org wrote on 01/15/2010
09:27:05 AM:<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt;&gt; [image removed]<br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt; [rules-users] how to provide a relative path using
file: in change-<br>
&gt; &gt;&gt; &gt;&gt; set and FileResource<br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt; Pritam<br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt; to:<br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt; rules-users<br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt; 01/15/2010 09:35 AM<br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt; Sent by:<br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt; rules-users-bounces@lists.jboss.org<br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt; Please respond to Rules Users List<br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt; Consider a change-set.xml,<br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt; &lt;change-set xmlns='http://drools.org/drools-5.0/change-set'<br>
&gt; &gt;&gt; &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'<br>
&gt; &gt;&gt; &gt;&gt; xs:schemaLocation='http://drools.org/drools-5.0/change-set.xsd'<br>
&gt; &gt;&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt;&gt; &nbsp; &nbsp;&lt;add&gt;<br>
&gt; &gt;&gt; &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;resource source='file:rules/'
type='DRL' /&gt;<br>
&gt; &gt;&gt; &gt;&gt; &nbsp; &nbsp;&lt;/add&gt;<br>
&gt; &gt;&gt; &gt;&gt; &lt;/change-set&gt;<br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt; I have a rules folder under WebRoot in my web application
but the<br>
&gt; &gt;&gt; above<br>
&gt; &gt;&gt; &gt;&gt; source url doesn't work as I get a<br>
&gt; &gt;&gt; &gt;&gt; &nbsp;java.net.UnknownHostException: rules<br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt; The same is true while providing a file path resource
using<br>
&gt; &gt;&gt; &gt;&gt; ResourceFactory.newFileResource(&quot;path&quot;);<br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt; In Spring, one can provide ant-path style regular
expressions and it<br>
&gt; &gt;&gt; &gt; looks<br>
&gt; &gt;&gt; &gt;&gt; on a relative path. Is there something similar for
drools?<br>
&gt; &gt;&gt; &gt;&gt; --<br>
&gt; &gt;&gt; &gt;&gt; View this message in context: </font></tt><a href="http://n3.nabble.com/how-to-provide-a-"><tt><font size=2>http://n3.nabble.com/how-to-provide-a-</font></tt></a><tt><font size=2><br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; relative-path-using-file-in-change-set-and-FileResource-<br>
&gt; tp122036p122036.html<br>
&gt; &gt;&gt; &gt;&gt; Sent from the Drools - User mailing list archive
at Nabble.com.<br>
&gt; &gt;&gt; &gt;&gt; _______________________________________________<br>
&gt; &gt;&gt; &gt;&gt; rules-users mailing list<br>
&gt; &gt;&gt; &gt;&gt; rules-users@lists.jboss.org<br>
&gt; &gt;&gt; &gt;&gt; </font></tt><a href="https://lists.jboss.org/mailman/listinfo/rules-users"><tt><font size=2>https://lists.jboss.org/mailman/listinfo/rules-users</font></tt></a><tt><font size=2><br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; _______________________________________________<br>
&gt; &gt;&gt; &gt; rules-users mailing list<br>
&gt; &gt;&gt; &gt; rules-users@lists.jboss.org<br>
&gt; &gt;&gt; &gt; </font></tt><a href="https://lists.jboss.org/mailman/listinfo/rules-users"><tt><font size=2>https://lists.jboss.org/mailman/listinfo/rules-users</font></tt></a><tt><font size=2><br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; --<br>
&gt; &gt;&gt; View this message in context:<br>
&gt; &gt;&gt; </font></tt><a href="http://n3.nabble.com/how-to-provide-a-relative-path-using-file-"><tt><font size=2>http://n3.nabble.com/how-to-provide-a-relative-path-using-file-</font></tt></a><tt><font size=2><br>
&gt; in-change-set-and-FileResource-tp122036p126125.html<br>
&gt; &gt;&gt; Sent from the Drools - User mailing list archive at Nabble.com.<br>
&gt; &gt;&gt; _______________________________________________<br>
&gt; &gt;&gt; rules-users mailing list<br>
&gt; &gt;&gt; rules-users@lists.jboss.org<br>
&gt; &gt;&gt; </font></tt><a href="https://lists.jboss.org/mailman/listinfo/rules-users"><tt><font size=2>https://lists.jboss.org/mailman/listinfo/rules-users</font></tt></a><tt><font size=2><br>
&gt; &gt;&gt;<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; -- <br>
&gt; &gt; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>
&gt; &gt; <br>
&gt; &gt; Esteban Aliverti<br>
&gt; &gt; <br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; rules-users mailing list<br>
&gt; &gt; rules-users@lists.jboss.org<br>
&gt; &gt; </font></tt><a href="https://lists.jboss.org/mailman/listinfo/rules-users"><tt><font size=2>https://lists.jboss.org/mailman/listinfo/rules-users</font></tt></a><tt><font size=2><br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; <br>
&gt; -- <br>
&gt; View this message in context: </font></tt><a href="http://n3.nabble.com/how-to-provide-a-"><tt><font size=2>http://n3.nabble.com/how-to-provide-a-</font></tt></a><tt><font size=2><br>
&gt; relative-path-using-file-in-change-set-and-FileResource-tp122036p126284.html<br>
&gt; Sent from the Drools - User mailing list archive at Nabble.com.<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; rules-users@lists.jboss.org<br>
&gt; </font></tt><a href="https://lists.jboss.org/mailman/listinfo/rules-users"><tt><font size=2>https://lists.jboss.org/mailman/listinfo/rules-users</font></tt></a><tt><font size=2><br>
</font></tt>