use of org.guvnor.structure.server.config.ConfigGroup in project kie-wb-common by kiegroup.
the class ResourceChangeIncrementalBuilderConcurrencyTest method setUp.
@Before
public void setUp() throws Exception {
// Define mandatory properties
List<ConfigGroup> globalConfigGroups = configurationService.getConfiguration(ConfigType.GLOBAL);
boolean globalSettingsDefined = false;
for (ConfigGroup globalConfigGroup : globalConfigGroups) {
if (GLOBAL_SETTINGS.equals(globalConfigGroup.getName())) {
globalSettingsDefined = true;
break;
}
}
if (!globalSettingsDefined) {
configurationService.addConfiguration(getGlobalConfiguration());
}
final URL pomUrl = this.getClass().getResource("/BuildChangeListenerRepo/pom.xml");
final org.uberfire.java.nio.file.Path nioPomPath = fs.getPath(pomUrl.toURI());
pomPath = paths.convert(nioPomPath);
final URL resourceUrl = this.getClass().getResource("/BuildChangeListenerRepo/src/main/resources/update.drl");
final org.uberfire.java.nio.file.Path nioResourcePath = fs.getPath(resourceUrl.toURI());
resourcePath = paths.convert(nioResourcePath);
executor = (ThreadPoolExecutor) Executors.newCachedThreadPool();
executorManagerFactory.getExecutorManager().setExecutorService(executor);
}
use of org.guvnor.structure.server.config.ConfigGroup in project kie-wb-common by kiegroup.
the class ResourceChangeIncrementalBuilderConcurrencyTest method getGlobalConfiguration.
private ConfigGroup getGlobalConfiguration() {
// Global Configurations used by many of Drools Workbench editors
final ConfigGroup group = configurationFactory.newConfigGroup(ConfigType.GLOBAL, GLOBAL_SETTINGS, "");
group.addConfigItem(configurationFactory.newConfigItem("build.enable-incremental", "true"));
return group;
}
use of org.guvnor.structure.server.config.ConfigGroup in project kie-wb-common by kiegroup.
the class ResourceChangeIncrementalBuilderWithoutFullBuildTest method getGlobalConfiguration.
private ConfigGroup getGlobalConfiguration() {
// Global Configurations used by many of Drools Workbench editors
final ConfigGroup group = configurationFactory.newConfigGroup(ConfigType.GLOBAL, GLOBAL_SETTINGS, "");
group.addConfigItem(configurationFactory.newConfigItem("build.enable-incremental", "true"));
return group;
}
use of org.guvnor.structure.server.config.ConfigGroup in project kie-wb-common by kiegroup.
the class ResourceChangeIncrementalBuilderTest method getGlobalConfiguration.
private ConfigGroup getGlobalConfiguration() {
// Global Configurations used by many of Drools Workbench editors
final ConfigGroup group = configurationFactory.newConfigGroup(ConfigType.GLOBAL, GLOBAL_SETTINGS, "");
group.addConfigItem(configurationFactory.newConfigItem("build.enable-incremental", "true"));
return group;
}
use of org.guvnor.structure.server.config.ConfigGroup in project kie-wb-common by kiegroup.
the class ResourceChangeIncrementalBuilderTest method setUp.
@Before
public void setUp() throws Exception {
// Define mandatory properties
List<ConfigGroup> globalConfigGroups = configurationService.getConfiguration(ConfigType.GLOBAL);
boolean globalSettingsDefined = false;
for (ConfigGroup globalConfigGroup : globalConfigGroups) {
if (GLOBAL_SETTINGS.equals(globalConfigGroup.getName())) {
globalSettingsDefined = true;
break;
}
}
if (!globalSettingsDefined) {
configurationService.addConfiguration(getGlobalConfiguration());
}
}
Aggregations