| echo "Usage: $0 <out_dir> <dest_dir> <build_number>" > /dev/stderr |
| echo "Given arguments: $*" > /dev/stderr |
| echo "ANDROID_SRC=$ANDROID_SRC" |
| # 1. Generate Maven repository containing all tools |
| echo Running gradle to build tools libraries... |
| ./gradlew --no-daemon publishLocal |
| # 2. Copy dependent jars into the libs folder of each plugin |
| echo Copying jars to be embedded inside the ADT plugins |
| ./tools/gradlew -i -b sdk/eclipse/build.gradle --no-daemon copydeps |
| echo Launching Tycho to build ADT plugins and bundle |
| ( set -x ; BUILD_NUMBER="$BNUM" ./tools/gradlew -i -b sdk/eclipse/build.gradle --no-daemon buildEclipse) |
| echo Copying ADT plugins and bundle into destination folder |
| cp -rv out/host/maven/bundles-*/products/*.zip "$DIST"/ |
| cp -rv out/host/maven/p2repo-*/p2repo-*.zip "$DIST"/p2repo-$BNUM.zip |