m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle5
1 files changed, 5 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index 51a49c5..201f249 100644
--- a/build.gradle
+++ b/build.gradle
@@ -58,6 +58,10 @@ ext.fallbackContacts = {
return System.getProperty("fallbackContacts") ?: "{\"" + zonePath() + "\":[127,0,0,1]}"
}
+ext.ownAddr = {
+ return System.getProperty("ownZone") ?: "localhost"
+}
+
/*
Possible options:
RoundRobinExp
@@ -147,6 +151,7 @@ task runFetcher(type: JavaExec) {
args(hostname() , 1099)
systemProperty 'zone_path', zonePath()
systemProperty 'fallback_contacts', fallbackContacts()
+ systemProperty 'own_addr', ownAddr()
}
task runInterpreter(type: JavaExec) {