aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wfar...@apache.org
Subject git commit: Move some build task work away from the configure phase.
Date Mon, 07 Apr 2014 15:11:17 GMT
Repository: incubator-aurora
Updated Branches:
  refs/heads/master 3bcbc8831 -> 1596f6901


Move some build task work away from the configure phase.

Reviewed at https://reviews.apache.org/r/20062/


Project: http://git-wip-us.apache.org/repos/asf/incubator-aurora/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-aurora/commit/1596f690
Tree: http://git-wip-us.apache.org/repos/asf/incubator-aurora/tree/1596f690
Diff: http://git-wip-us.apache.org/repos/asf/incubator-aurora/diff/1596f690

Branch: refs/heads/master
Commit: 1596f6901e8229b088a4fbe8099d0d06d7d044b7
Parents: 3bcbc88
Author: Bill Farner <wfarner@apache.org>
Authored: Mon Apr 7 08:08:33 2014 -0700
Committer: Bill Farner <wfarner@apache.org>
Committed: Mon Apr 7 08:08:33 2014 -0700

----------------------------------------------------------------------
 build.gradle | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/1596f690/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 109c193..cdcc015 100644
--- a/build.gradle
+++ b/build.gradle
@@ -240,9 +240,11 @@ def thriftBinary = 'build-support/thrift/thrift-0.9.1/compiler/cpp/thrift'
 task bootstrapThrift {
   inputs.file file(thriftBinary)
   outputs.dir file(thriftBinary)
-  exec {
-    executable = 'make'
-    args = ['-C', 'build-support/thrift']
+  doLast {
+    exec {
+      executable = 'make'
+      args = ['-C', 'build-support/thrift']
+    }
   }
 }
 
@@ -251,7 +253,7 @@ task generateSources(dependsOn: 'bootstrapThrift') {
   ext.outputDir = file(generatedDir)
   inputs.file inputFiles
   outputs.dir outputDir
-  doFirst {
+  doLast {
     outputDir.exists() || outputDir.mkdirs()
     inputFiles.each { File file ->
       exec {
@@ -365,7 +367,7 @@ jacocoTestReport {
 
 test.finalizedBy jacocoTestReport
 
-task FlagSchemaChanges(type: Test) {
+task FlagSchemaChanges(type: Test) << {
   exec {
     executable = 'bash'
     args = ['src/test/sh/org/apache/aurora/verify_thrift_checksum.sh']


Mime
View raw message