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