m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorMagdalena Grodzińska <mag.grodzinska@gmail.com>2020-01-11 19:18:51 +0100
committerMagdalena Grodzińska <mag.grodzinska@gmail.com>2020-01-11 19:18:51 +0100
commit20ef394318f5e389996b3205e8f2958ed0ca2a65 (patch)
treefd39e5a07370106441076a0bd0f1b0a7f733cdcc /build.gradle
parenteb93e15925f7062cf3ffdb0e3712bbbf8bd46ee9 (diff)
Add flags to configure udup server addr
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle16
1 files changed, 8 insertions, 8 deletions
diff --git a/build.gradle b/build.gradle
index 66c50d1..9d91539 100644
--- a/build.gradle
+++ b/build.gradle
@@ -30,19 +30,19 @@ ext.gossipPeriod = {
return System.getProperty("gossipPeriod") ?: 5 * 1000
}
-ext.UDUPHostname = {
+ext.UDUPServerHostname = {
return System.getProperty("hostname") ?: "localhost"
}
-ext.port = {
+ext.UDUPServerPort = {
return System.getProperty("port") ?: 5999;
}
-ext.timeout = {
+ext.UDUPServerTimeout = {
return System.getProperty("timeout") ?: 5000;
}
-ext.bufsize = {
+ext.UDUPServerBufsize = {
return System.getProperty("bufsize") ?: 512;
}
@@ -89,10 +89,10 @@ task runAgent(type: JavaExec) {
systemProperty 'freshness_period', freshnessPeriod()
systemProperty 'query_period', queryPeriod()
systemProperty 'gossip_period', gossipPeriod()
- systemProperty 'UDUPServer.hostname', UDUPHostname()
- systemProperty 'UDUPServer.port', port()
- systemProperty 'UDUPServer.timeout', port()
- systemProperty 'UDUPServer.bufsize', port()
+ systemProperty 'UDUPServer.hostname', UDUPServerHostname()
+ systemProperty 'UDUPServer.port', UDUPServerPort()
+ systemProperty 'UDUPServer.timeout', UDUPServerTimeout()
+ systemProperty 'UDUPServer.bufsize', UDUPServerBufsize()
}
task runClient(type: JavaExec) {