diff options
author | Magdalena Grodzińska <mag.grodzinska@gmail.com> | 2020-01-15 04:44:54 +0100 |
---|---|---|
committer | Magdalena Grodzińska <mag.grodzinska@gmail.com> | 2020-01-15 04:44:54 +0100 |
commit | 0cb7ded87955286f950d2802fc6a0d1c9c26726a (patch) | |
tree | 6875ba1b10c804d728925c9cb282b404cd3c20f6 /build.gradle | |
parent | 710a97612ac050ad79a20f39c5ea9a53eb7263ab (diff) |
Add setting contacts in a fetcher flag
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle index c6ebcae..51a49c5 100644 --- a/build.gradle +++ b/build.gradle @@ -51,6 +51,14 @@ ext.querySignerHostname = { } /* +Example: -DfallbackContacts=\{\"/uw/violet07\":[192,168,0,11]} +escape at the beginning and before " + */ +ext.fallbackContacts = { + return System.getProperty("fallbackContacts") ?: "{\"" + zonePath() + "\":[127,0,0,1]}" +} + +/* Possible options: RoundRobinExp RoundRobinUniform @@ -138,6 +146,7 @@ task runFetcher(type: JavaExec) { main = 'pl.edu.mimuw.cloudatlas.fetcher.Fetcher' args(hostname() , 1099) systemProperty 'zone_path', zonePath() + systemProperty 'fallback_contacts', fallbackContacts() } task runInterpreter(type: JavaExec) { |