[rules-users] place for import statments

ekke ekkehard at gentz-software.de
Thu Sep 20 06:02:41 EDT 2007


thx for soon answer,
but here's my next question about import with *

is it correct, that
import org.a.daten.* is only valid to use classes from
org.a.daten like org.a.daten.Class1
but not from sub-packages like org.a.daten.sales.Class2 ?
if I import org.a.daten.sales.* it works

ekke


Mark Proctor wrote:
> 
> rule.package is for the .brl, keep drls self contained.
> 
> Mark
> ekke wrote:
>> hi,
>> I installed Drools 4.0.1 and examples.
>> I have seen that there's a file rule.package
>> (//This is a package configuration file
>> //Add imports, globals etc here which will be used by all the rule assets
>> in
>> thise folder.)
>>
>> I've tested something and noticed, that .drl and .brl "see" these
>> imports.
>>
>> because I didn't found something about rule.package files in the docs,
>> I want to ask whats the recommended place for imports etc:
>> inside the .drl or inside the rule.package file ?
>>
>> thanks for info
>>
>> ekke
>>   
> 
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
> 
> 

-- 
View this message in context: http://www.nabble.com/place-for-import-statments-tf4486306.html#a12794213
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list