improved logging and execution from repo

This commit is contained in:
Ziver Koc 2025-12-24 04:18:58 +01:00
parent 1779916d97
commit 1f40d4b1f2
2 changed files with 10 additions and 1 deletions

View file

@ -90,6 +90,13 @@ distributions {
from 'logging.properties' from 'logging.properties'
from 'run.sh' from 'run.sh'
if (file('hal.conf').exists()) {
from 'hal.conf'
}
if (file('hal.db').exists()) {
from 'hal.db'
}
// from subprojects // from subprojects
project.subprojects.each { subProject -> project.subprojects.each { subProject ->
into('bin') { into('bin') {

View file

@ -58,6 +58,8 @@ public class HalContext {
public static final String RUNTIME_ROOT; public static final String RUNTIME_ROOT;
static { static {
logger.info("Runtime folder: " + new File("").getAbsolutePath());
if (FileUtil.find("build/install/Hal") != null) // Development environment if (FileUtil.find("build/install/Hal") != null) // Development environment
RUNTIME_ROOT = "build/install/Hal"; RUNTIME_ROOT = "build/install/Hal";
else else
@ -95,7 +97,7 @@ public class HalContext {
fileConf.load(in); fileConf.load(in);
in.close(); in.close();
} else { } else {
logger.info("No hal.conf file found"); logger.info("No hal.conf file found at: " + CONF_FILE);
} }
// Init DB // Init DB