From 6bd905a02759dfd7adb4718addd7fa80efaae75f Mon Sep 17 00:00:00 2001 From: str4d Date: Tue, 15 Jul 2014 03:40:47 +0000 Subject: [PATCH] Fixed client building (thanks alkemist from Freenode#gradle) --- routerjars/build.gradle | 33 +++++++++++++++++---------------- routerjars/build.xml | 28 ++++++++++++++++++++-------- 2 files changed, 37 insertions(+), 24 deletions(-) diff --git a/routerjars/build.gradle b/routerjars/build.gradle index 225f46b1f..d27024ebb 100644 --- a/routerjars/build.gradle +++ b/routerjars/build.gradle @@ -1,33 +1,34 @@ apply plugin: 'java' -task buildJars(type: Exec) { - outputs.dir('libs') - commandLine 'ant', 'buildrouter' -} -compileJava.dependsOn buildJars - configurations { client } -dependencies { - 'default' configurations.client +configurations.default.extendsFrom configurations.client + +task buildClient(type: Exec) { + outputs.dir('libs') + commandLine 'ant', 'buildclient' +} +task buildRouter(type: Exec) { + outputs.dir('libs') + commandLine 'ant', 'buildrouter' } // TODO an empty routerjars.jar is added to the classpath artifacts { - client file('libs/i2p.jar') - client file('libs/mstreaming.jar') - client file('libs/streaming.jar') + client file: file('libs/i2p.jar'), builtBy: buildClient + client file: file('libs/mstreaming.jar'), builtBy: buildClient + client file: file('libs/streaming.jar'), builtBy: buildClient - 'default' file('libs/router.jar') - 'default' file('libs/i2ptunnel.jar') - 'default' file('libs/addressbook.jar') - 'default' file('libs/BOB.jar') + 'default' file: file('libs/router.jar'), builtBy: buildRouter + 'default' file: file('libs/i2ptunnel.jar'), builtBy: buildRouter + 'default' file: file('libs/addressbook.jar'), builtBy: buildRouter + 'default' file: file('libs/BOB.jar'), builtBy: buildRouter } -clean.dependsOn cleanBuildJars +clean.dependsOn cleanBuildClient, cleanBuildRouter clean << { exec { diff --git a/routerjars/build.xml b/routerjars/build.xml index c6faf534b..ac84fc63c 100644 --- a/routerjars/build.xml +++ b/routerjars/build.xml @@ -16,11 +16,17 @@ + + + + + + @@ -36,15 +42,9 @@ - + - - - - - - @@ -52,9 +52,18 @@ - + + + + + + + + + + @@ -64,6 +73,9 @@ + + +