HHH-6271 fixes build error when tools.jar is not on classpath (linux)

This commit is contained in:
Strong Liu 2012-03-20 13:13:23 +08:00
parent 5d6d9b87c1
commit 749f7c1eb5
1 changed files with 5 additions and 0 deletions

View File

@ -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 )