diff options
author | C. Sean Young <csyoung@google.com> | 2015-06-12 16:29:27 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-06-12 16:29:27 +0000 |
commit | b4dd76b8ab8122f4cef81b095cdd7b28f3701ae9 (patch) | |
tree | 844fc5f09e75284e5e4e6ec1056a39d912e9a3e5 | |
parent | 96c56a80033ef40cf0a615d4a6ddf8e3c269d158 (diff) | |
parent | 4a42aefbf4332c0c656465cb623958657e799939 (diff) | |
download | android_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.gradle | 15 |
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') |