HTTP access is an option?<br><br><div class="gmail_quote">On Mon, Jan 18, 2010 at 1:21 PM, Pritam <span dir="ltr"><<a href="mailto:infinity2heaven@gmail.com">infinity2heaven@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
classpath works only if the files are under WEB-INF/classes. In my case, the<br>
files are directly under the WebRoot.<br>
<br>
Any suggestions?<br>
<div><div></div><div class="h5"><br>
<br>
SteveR685 wrote:<br>
><br>
> Pritam,<br>
><br>
> Try using "classpath:" instead of "file:". I've only used this when<br>
> specifying the entire relative path to the file, I'm not sure about<br>
> referencing a directory.<br>
><br>
> <change-set xmlns='<a href="http://drools.org/drools-5.0/change-set" target="_blank">http://drools.org/drools-5.0/change-set</a>'<br>
> xmlns:xs='<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>'<br>
> xs:schemaLocation='<a href="http://drools.org/drools-5.0/change-set.xsd" target="_blank">http://drools.org/drools-5.0/change-set.xsd</a>'<br>
> <add><br>
> <resource source='classpath:rules/...' type='DRL' /><br>
> </add><br>
> </change-set><br>
><br>
> Steve Ronderos<br>
><br>
> <a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a> wrote on 01/15/2010 09:27:05 AM:<br>
><br>
>> [image removed]<br>
>><br>
>> [rules-users] how to provide a relative path using file: in change-<br>
>> set and FileResource<br>
>><br>
>> Pritam<br>
>><br>
>> to:<br>
>><br>
>> rules-users<br>
>><br>
>> 01/15/2010 09:35 AM<br>
>><br>
>> Sent by:<br>
>><br>
>> <a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a><br>
>><br>
>> Please respond to Rules Users List<br>
>><br>
>><br>
>> Consider a change-set.xml,<br>
>><br>
>> <change-set xmlns='<a href="http://drools.org/drools-5.0/change-set" target="_blank">http://drools.org/drools-5.0/change-set</a>'<br>
>> xmlns:xs='<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>'<br>
>> xs:schemaLocation='<a href="http://drools.org/drools-5.0/change-set.xsd" target="_blank">http://drools.org/drools-5.0/change-set.xsd</a>'<br>
>> ><br>
>> <add><br>
>> <resource source='file:rules/' type='DRL' /><br>
>> </add><br>
>> </change-set><br>
>><br>
>> I have a rules folder under WebRoot in my web application but the above<br>
>> source url doesn't work as I get a<br>
>> java.net.UnknownHostException: rules<br>
>><br>
>> The same is true while providing a file path resource using<br>
>> ResourceFactory.newFileResource("path");<br>
>><br>
>> In Spring, one can provide ant-path style regular expressions and it<br>
> looks<br>
>> on a relative path. Is there something similar for drools?<br>
>> --<br>
>> View this message in context: <a href="http://n3.nabble.com/how-to-provide-a-" target="_blank">http://n3.nabble.com/how-to-provide-a-</a><br>
>><br>
> relative-path-using-file-in-change-set-and-FileResource-tp122036p122036.html<br>
>> Sent from the Drools - User mailing list archive at Nabble.com.<br>
>> _______________________________________________<br>
>> rules-users mailing list<br>
>> <a href="mailto:rules-users@lists.jboss.org">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>
><br>
> _______________________________________________<br>
> rules-users mailing list<br>
> <a href="mailto:rules-users@lists.jboss.org">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>
><br>
><br>
<br>
--<br>
</div></div>View this message in context: <a href="http://n3.nabble.com/how-to-provide-a-relative-path-using-file-in-change-set-and-FileResource-tp122036p126125.html" target="_blank">http://n3.nabble.com/how-to-provide-a-relative-path-using-file-in-change-set-and-FileResource-tp122036p126125.html</a><br>
<div><div></div><div class="h5">Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>