am 3c44818f: am 762c27fe: am 47485edf: am d4c4946f: am f798f20a: Fix href in @linkplain links when not on the federated site
* commit '3c44818f1117bb90723bd8064a7fb0701ef8d1c3':
Fix href in @linkplain links when not on the federated site
diff --git a/build.gradle b/build.gradle
index 79d856e..382e10d 100644
--- a/build.gradle
+++ b/build.gradle
@@ -14,7 +14,7 @@
String findToolsJar() {
new ByteArrayOutputStream().withStream { os ->
project.exec {
- executable "$rootDir/build/core/find-jdk-tools-jar.sh"
+ executable "../../build/core/find-jdk-tools-jar.sh"
standardOutput = os
}
@@ -22,9 +22,27 @@
}
}
-dependencies {
- compile files(findToolsJar())
- compile project(path: ':antlr', configuration: 'antlrRuntime')
- compile project(':jsilver')
- compile project(':tagsoup')
-}
\ No newline at end of file
+
+if (project.hasProperty("usePrebuilts") && project.usePrebuilts == "true") {
+ repositories {
+ maven { url '../../prebuilts/tools/common/m2/repository' }
+ }
+
+ dependencies {
+ compile files(findToolsJar())
+ compile files('../../prebuilts/misc/common/antlr/antlr-3.4-complete.jar')
+ compile 'com.google.jsilver:jsilver:1.0.0'
+ // TODO add tagsoup to prebuils to fully support building using prebuilts
+ compile project(':tagsoup')
+ // required by jsilver
+ compile 'com.google.guava:guava:15.0'
+ //compile project(path: ':junit', configuration: 'target')
+ }
+} else {
+ dependencies {
+ compile files(findToolsJar())
+ compile project(path: ':antlr', configuration: 'antlrRuntime')
+ compile project(':jsilver')
+ compile project(':tagsoup')
+ }
+}