m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorMagdalena Grodzińska <mag.grodzinska@gmail.com>2020-01-10 16:29:49 +0100
committerMagdalena Grodzińska <mag.grodzinska@gmail.com>2020-01-10 16:29:49 +0100
commitad872a25f94f6297a659cf945c4e1547ed8f28d7 (patch)
tree0940ac03232b6723af536013fad46f0a08de3b0a /build.gradle
parentf042953bdbe2a5e0d9e9e19d275fd45a958fe626 (diff)
Fix getting system properties
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle8
1 files changed, 8 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index a18999c..de9a9df 100644
--- a/build.gradle
+++ b/build.gradle
@@ -22,6 +22,10 @@ ext.freshnessPeriod = {
return System.getProperty("freshnessPeriod") ?: 60 * 1000
}
+ext.UDUPHostname = {
+ return System.getProperty("hostname") ?: "localhost"
+}
+
ext.port = {
return System.getProperty("port") ?: 5999;
}
@@ -73,6 +77,10 @@ task runAgent(type: JavaExec) {
main = 'pl.edu.mimuw.cloudatlas.agent.Agent'
systemProperty 'java.rmi.server.hostname', hostname()
systemProperty 'freshness_period', freshnessPeriod()
+ systemProperty 'UDUPServer.hostname', UDUPHostname()
+ systemProperty 'UDUPServer.port', port()
+ systemProperty 'UDUPServer.timeout', port()
+ systemProperty 'UDUPServer.bufsize', port()
}
task runClient(type: JavaExec) {