protected InternalKieModule createKieModule(KieModuleModel kieProject) { String rootPath = parseKModuleRootPath(kModuleRootUrl); if (rootPath.lastIndexOf(':') >= 2) { // avoid to trucate Windows paths like C:\my\folder\... rootPath = rootPath.substring(rootPath.lastIndexOf(':') + 1); } return ClasspathKieProject.createInternalKieModule(kieProject, releaseId, rootPath); }
protected InternalKieModule createKieModule(KieModuleModel kieProject) { String rootPath = parseKModuleRootPath(kModuleRootUrl); if (rootPath.lastIndexOf(':') >= 2) { // avoid to trucate Windows paths like C:\my\folder\... rootPath = rootPath.substring(rootPath.lastIndexOf(':') + 1); } return ClasspathKieProject.createInternalKieModule(kieProject, releaseId, rootPath); }
protected void addKieModuleToRepo(KieModuleModel kieModuleModel) { String rootPath = configFilePath; if ( rootPath.lastIndexOf( ':' ) >= 2 ) { // avoid to trucate Windows paths like C:\my\folder\... rootPath = configFilePath.substring( rootPath.lastIndexOf( ':' ) + 1 ); } KieBuilderImpl.setDefaultsforEmptyKieModule(kieModuleModel); InternalKieModule internalKieModule = ClasspathKieProject.createInternalKieModule(kieModuleModel, releaseId, rootPath); if ( internalKieModule != null ) { KieServices ks = KieServices.Factory.get(); ks.getRepository().addKieModule(internalKieModule); log.info(" :: Added KieModule From KieObjectsInjector ::"); } }
protected void addKieModuleToRepo(KieModuleModel kieModuleModel) { String rootPath = configFilePath; if ( rootPath.lastIndexOf( ':' ) >= 2 ) { // avoid to trucate Windows paths like C:\my\folder\... rootPath = configFilePath.substring( rootPath.lastIndexOf( ':' ) + 1 ); } KieBuilderImpl.setDefaultsforEmptyKieModule(kieModuleModel); InternalKieModule internalKieModule = ClasspathKieProject.createInternalKieModule(kieModuleModel, releaseId, rootPath); if ( internalKieModule != null ) { KieServices ks = KieServices.Factory.get(); ks.getRepository().addKieModule(internalKieModule); log.info(" :: Added KieModule From KieObjectsInjector ::"); } }