Skip to content

Commit

Permalink
Trigger samples build manually via Gradle build property
Browse files Browse the repository at this point in the history
  • Loading branch information
mttkay committed Mar 12, 2014
1 parent 1275d08 commit a40f8c5
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
def androidHome = System.getenv("ANDROID_HOME")
tasks.build.doLast {
if (androidHome.isEmpty()) {
println("No Android SDK detected; skipping Android samples build")
} else {
def androidHome = System.getenv("ANDROID_HOME")
if (project.hasProperty('buildAndroidSamples') && !androidHome.isEmpty()) {
println("Android SDK detected at $androidHome, running samples build")
project.exec {
workingDir '../rxjava-android-samples'

commandLine "./gradlew", "clean", "packageDebug"
}
}
}
}

0 comments on commit a40f8c5

Please sign in to comment.