From 749f7c1eb5206ab456db08bb901befa39ac5c11e Mon Sep 17 00:00:00 2001 From: Strong Liu Date: Tue, 20 Mar 2012 13:13:23 +0800 Subject: [PATCH] HHH-6271 fixes build error when tools.jar is not on classpath (linux) --- build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.gradle b/build.gradle index e8f28eff23..710c2970f8 100644 --- a/build.gradle +++ b/build.gradle @@ -144,6 +144,10 @@ subprojects { subProject -> } } + toolsJar = file("${System.getProperty('java.home')}/../lib/tools.jar") + if(!toolsJar.exists()){ + toolsJar = file("${System.getProperty('java.home')}/../Classes/classes.jar") + } // appropriately inject the common dependencies into each sub-project dependencies { @@ -152,6 +156,7 @@ subprojects { subProject -> testCompile( libraries.byteman ) testCompile( libraries.byteman_install ) testCompile( libraries.byteman_bmunit ) + testCompile files( toolsJar ) testRuntime( libraries.slf4j_api ) testRuntime( libraries.slf4j_log4j12 ) testRuntime( libraries.jcl_slf4j )