diff options
Diffstat (limited to 'module/ri-engine/src/main/resources/io/trygvis')
-rw-r--r-- | module/ri-engine/src/main/resources/io/trygvis/rules/engine/init.drl (renamed from module/ri-engine/src/main/resources/io/trygvis/rules/engine/default.drl) | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/module/ri-engine/src/main/resources/io/trygvis/rules/engine/default.drl b/module/ri-engine/src/main/resources/io/trygvis/rules/engine/init.drl index a933bd9..267cc4a 100644 --- a/module/ri-engine/src/main/resources/io/trygvis/rules/engine/default.drl +++ b/module/ri-engine/src/main/resources/io/trygvis/rules/engine/init.drl @@ -5,12 +5,13 @@ import org.apache.commons.io.FileSystem import org.apache.commons.io.FileUtils import java.io.File +global io.trygvis.rules.engine.TemplateEngine te; + rule "Clean directories" agenda-group "init" when not(KeyValue(key == "rm-gen")); then - System.out.println("Cleaning gen!"); - FileUtils.deleteDirectory(new File("gen")); + te.clean(); insert(new KeyValue("rm-gen", null)); end |