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 9ef400c..01e8685 100644
--- a/build.gradle
+++ b/build.gradle
@@ -18,6 +18,10 @@ ext.hostname = {
return System.getProperty("hostname") ?: "localhost"
}
+ext.freshnessPeriod = {
+ return System.getProperty("freshnessPeriod") ?: 60 * 1000
+}
+
repositories {
// Use jcenter for resolving dependencies.
// You can declare any Maven/Ivy/file repository here.
@@ -56,6 +60,7 @@ task runAgent(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
main = 'pl.edu.mimuw.cloudatlas.agent.Agent'
systemProperty 'java.rmi.server.hostname', hostname()
+ systemProperty 'freshness_period', freshnessPeriod()
}
task runClient(type: JavaExec) {