improved logging and execution from repo
This commit is contained in:
parent
1779916d97
commit
1f40d4b1f2
2 changed files with 10 additions and 1 deletions
|
|
@ -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') {
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue