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 'run.sh'
|
||||
|
||||
if (file('hal.conf').exists()) {
|
||||
from 'hal.conf'
|
||||
}
|
||||
if (file('hal.db').exists()) {
|
||||
from 'hal.db'
|
||||
}
|
||||
|
||||
// from subprojects
|
||||
project.subprojects.each { subProject ->
|
||||
into('bin') {
|
||||
|
|
|
|||
|
|
@ -58,6 +58,8 @@ public class HalContext {
|
|||
|
||||
public static final String RUNTIME_ROOT;
|
||||
static {
|
||||
logger.info("Runtime folder: " + new File("").getAbsolutePath());
|
||||
|
||||
if (FileUtil.find("build/install/Hal") != null) // Development environment
|
||||
RUNTIME_ROOT = "build/install/Hal";
|
||||
else
|
||||
|
|
@ -95,7 +97,7 @@ public class HalContext {
|
|||
fileConf.load(in);
|
||||
in.close();
|
||||
} else {
|
||||
logger.info("No hal.conf file found");
|
||||
logger.info("No hal.conf file found at: " + CONF_FILE);
|
||||
}
|
||||
|
||||
// Init DB
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue