m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle4
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) {