[rules-users] how to provide a relative path using file: in change-set and FileResource
Pritam
infinity2heaven at gmail.com
Fri Jan 15 10:27:05 EST 2010
Consider a change-set.xml,
<change-set xmlns='http://drools.org/drools-5.0/change-set'
xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
xs:schemaLocation='http://drools.org/drools-5.0/change-set.xsd'
>
<add>
<resource source='file:rules/' type='DRL' />
</add>
</change-set>
I have a rules folder under WebRoot in my web application but the above
source url doesn't work as I get a
java.net.UnknownHostException: rules
The same is true while providing a file path resource using
ResourceFactory.newFileResource("path");
In Spring, one can provide ant-path style regular expressions and it looks
on a relative path. Is there something similar for drools?
--
View this message in context: http://n3.nabble.com/how-to-provide-a-relative-path-using-file-in-change-set-and-FileResource-tp122036p122036.html
Sent from the Drools - User mailing list archive at Nabble.com.
More information about the rules-users
mailing list