Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
HHH-6271 fixes build error when tools.jar is not on classpath (linux)
  • Loading branch information
stliu committed Mar 20, 2012
1 parent 5d6d9b8 commit 749f7c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.gradle
Expand Up @@ -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 {
Expand All @@ -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 )
Expand Down

0 comments on commit 749f7c1

Please sign in to comment.