Fix compilazione statica drools
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package it.integry.ems_model.rulescompleting;
|
||||
|
||||
import it.integry.annotations.PostContextConstruct;
|
||||
import it.integry.ems.utility.UtilityDebug;
|
||||
import it.integry.ems.utility.UtilityDirs;
|
||||
import it.integry.ems_model.base.EntityInterface;
|
||||
import it.integry.ems_model.base.EntityPropertyHolder;
|
||||
@@ -78,7 +77,7 @@ public class DroolsDataCompleting {
|
||||
System.setProperty("drools.dialect.mvel.strict", "false");
|
||||
|
||||
|
||||
if (shouldCompileDrools() || !compiledDrlFile.exists()) {
|
||||
if (!shouldSkipDroolsCompile() || !compiledDrlFile.exists()) {
|
||||
File directory = new File(compiledRulesPath);
|
||||
if (!directory.exists())
|
||||
directory.mkdirs();
|
||||
@@ -138,8 +137,9 @@ public class DroolsDataCompleting {
|
||||
|
||||
}
|
||||
|
||||
private boolean shouldCompileDrools() {
|
||||
return !UtilityDebug.isDebugExecution() || !"TRUE".equalsIgnoreCase(System.getProperty("DISABLE_DROOLS_COMPILE"));
|
||||
private boolean shouldSkipDroolsCompile() {
|
||||
boolean enableDroolCompileParam = !"TRUE".equalsIgnoreCase(System.getProperty("DISABLE_DROOLS_COMPILE"));
|
||||
return !enableDroolCompileParam;
|
||||
}
|
||||
|
||||
private String getCompiledDroolsFolder() {
|
||||
|
||||
Reference in New Issue
Block a user