diff options
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 8 |
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) { |