Browse Source

Build: Support offline build of bwc zip (#24037)

The bwc checkout for backcompat tests currently always tries to fetch
the latest from the upstream remote. This change makes fetching from
upstream conditional on not running an offline build.
Ryan Ernst 8 years ago
parent
commit
b0003edcf4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      distribution/bwc-zip/build.gradle

+ 1 - 0
distribution/bwc-zip/build.gradle

@@ -65,6 +65,7 @@ task addUpstream(type: LoggedExec) {
 }
 
 task fetchLatest(type: LoggedExec) {
+  onlyIf { project.gradle.startParameter.isOffline() == false }
   dependsOn addUpstream
   workingDir = checkoutDir
   commandLine = ['git', 'fetch', 'upstream']