summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorC. Sean Young <csyoung@google.com>2015-06-12 16:29:27 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-06-12 16:29:27 +0000
commitb4dd76b8ab8122f4cef81b095cdd7b28f3701ae9 (patch)
tree844fc5f09e75284e5e4e6ec1056a39d912e9a3e5
parent96c56a80033ef40cf0a615d4a6ddf8e3c269d158 (diff)
parent4a42aefbf4332c0c656465cb623958657e799939 (diff)
downloadandroid_external_doclava-b4dd76b8ab8122f4cef81b095cdd7b28f3701ae9.tar.gz
android_external_doclava-b4dd76b8ab8122f4cef81b095cdd7b28f3701ae9.tar.bz2
android_external_doclava-b4dd76b8ab8122f4cef81b095cdd7b28f3701ae9.zip
am 4a42aefb: Update JDK tools jar lookup logic to use BuildUtils.
* commit '4a42aefbf4332c0c656465cb623958657e799939': Update JDK tools jar lookup logic to use BuildUtils.
-rw-r--r--build.gradle15
1 files changed, 3 insertions, 12 deletions
diff --git a/build.gradle b/build.gradle
index 79d856e..50c36d4 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,5 +1,7 @@
apply plugin: 'java'
+import com.android.internal.BuildUtils
+
sourceSets {
main {
java {
@@ -10,20 +12,9 @@ sourceSets {
}
}
}
-// TODO put this function in a plugin
-String findToolsJar() {
- new ByteArrayOutputStream().withStream { os ->
- project.exec {
- executable "$rootDir/build/core/find-jdk-tools-jar.sh"
-
- standardOutput = os
- }
- return os.toString().trim()
- }
-}
dependencies {
- compile files(findToolsJar())
+ compile files(BuildUtils.findToolsJar(project))
compile project(path: ':antlr', configuration: 'antlrRuntime')
compile project(':jsilver')
compile project(':tagsoup')