diff options
author | Martin <marcin.j.chrzanowski@gmail.com> | 2019-11-27 17:22:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-27 17:22:13 +0100 |
commit | 6d27310b2cdbd6f412157eee25cc68df9486db14 (patch) | |
tree | b7ebab7fa715b194509eee9cb6ee4984ba3db840 /build.gradle | |
parent | 97589d8380ca12fa0a75163a6f5bd79a7e1039fa (diff) |
Parametrize RMI host (#43)
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle index 237ff87..2195aee 100644 --- a/build.gradle +++ b/build.gradle @@ -49,17 +49,19 @@ application { task runAgent(type: JavaExec) { classpath = sourceSets.main.runtimeClasspath main = 'pl.edu.mimuw.cloudatlas.agent.Agent' + systemProperty 'java.rmi.server.hostname', System.getProperty('hostname') } task runClient(type: JavaExec) { classpath = sourceSets.main.runtimeClasspath main = 'pl.edu.mimuw.cloudatlas.client.Client' + systemProperty 'agent_hostname', System.getProperty('hostname') } task runFetcher(type: JavaExec) { classpath = sourceSets.main.runtimeClasspath main = 'pl.edu.mimuw.cloudatlas.fetcher.Fetcher' - args("localhost", 1099) + args(System.getProperty('hostname'), 1099) } task runInterpreter(type: JavaExec) { |