m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorMagdalena GrodziƄska <mag.grodzinska@gmail.com>2020-01-10 18:42:22 +0100
committerGitHub <noreply@github.com>2020-01-10 18:42:22 +0100
commit1b28c8a208c510183479e090f7b8c32f9dadd7c2 (patch)
treef7fb5f8a0ef797307e507107263c8394d9248bc7 /build.gradle
parent3e3677a34ab63d05cbc7a3c45dca98a47fbac77f (diff)
parentad872a25f94f6297a659cf945c4e1547ed8f28d7 (diff)
Merge pull request #89 from m-chrzan/refactor_udup
Refactor udup
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle20
1 files changed, 20 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index 01e8685..de9a9df 100644
--- a/build.gradle
+++ b/build.gradle
@@ -22,6 +22,22 @@ ext.freshnessPeriod = {
return System.getProperty("freshnessPeriod") ?: 60 * 1000
}
+ext.UDUPHostname = {
+ return System.getProperty("hostname") ?: "localhost"
+}
+
+ext.port = {
+ return System.getProperty("port") ?: 5999;
+}
+
+ext.timeout = {
+ return System.getProperty("timeout") ?: 5000;
+}
+
+ext.bufsize = {
+ return System.getProperty("bufsize") ?: 512;
+}
+
repositories {
// Use jcenter for resolving dependencies.
// You can declare any Maven/Ivy/file repository here.
@@ -61,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) {