init( properties );
}
private void init(Properties properties) {
this.chainedProperties = new ChainedProperties( "packagebuilder.conf",
getClassLoader(),
true );
if (chainedProperties.getProperty("drools.dialect.java", null) == null) {
// if it couldn't find a conf for java dialect using the project class loader
// it means it could not load the conf file at all (very likely it is running in
// an osgi environement) so try with the class loader of this class
this.chainedProperties = new ChainedProperties( "packagebuilder.conf",
getClass().getClassLoader(),
true );
if (this.classLoader instanceof ProjectClassLoader) {
((ProjectClassLoader) classLoader).setDroolsClassLoader(getClass().getClassLoader());