<br><font size=2 face="sans-serif">Pritam,</font>
<br>
<br><font size=2 face="sans-serif">Try using &quot;classpath:&quot; instead
of &quot;file:&quot;. &nbsp;I've only used this when specifying the entire
relative path to the file, I'm not sure about referencing a directory.</font>
<br>
<br><tt><font size=2>&lt;change-set xmlns='http://drools.org/drools-5.0/change-set'<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xs:schemaLocation='http://drools.org/drools-5.0/change-set.xsd'<br>
 &nbsp; &lt;add&gt;<br>
 &nbsp; &nbsp; &nbsp; &lt;resource source='classpath:rules/...' type='DRL'
/&gt;<br>
 &nbsp; &lt;/add&gt;<br>
&lt;/change-set&gt;</font></tt>
<br><font size=2 face="sans-serif"><br>
</font><font size=3>Steve Ronderos</font>
<br>
<br><tt><font size=2>rules-users-bounces@lists.jboss.org wrote on 01/15/2010
09:27:05 AM:<br>
<br>
&gt; [image removed] </font></tt>
<br><tt><font size=2>&gt; <br>
&gt; [rules-users] how to provide a relative path using file: in change-<br>
&gt; 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/15/2010 09:35 AM</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; Consider a change-set.xml,<br>
&gt; <br>
&gt; &lt;change-set xmlns='http://drools.org/drools-5.0/change-set'<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xs:schemaLocation='http://drools.org/drools-5.0/change-set.xsd'<br>
&gt; &gt;<br>
&gt; &nbsp; &nbsp;&lt;add&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;resource source='file:rules/' type='DRL'
/&gt;<br>
&gt; &nbsp; &nbsp;&lt;/add&gt;<br>
&gt; &lt;/change-set&gt;<br>
&gt; <br>
&gt; I have a rules folder under WebRoot in my web application but the
above<br>
&gt; source url doesn't work as I get a <br>
&gt; &nbsp;java.net.UnknownHostException: rules<br>
&gt; <br>
&gt; The same is true while providing a file path resource using<br>
&gt; ResourceFactory.newFileResource(&quot;path&quot;);<br>
&gt; <br>
&gt; In Spring, one can provide ant-path style regular expressions and
it looks<br>
&gt; on a relative path. Is there something similar for drools?<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-tp122036p122036.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>