polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paulmer...@apache.org
Subject [2/2] zest-qi4j git commit: ZEST-25 Skip checkBinDist_goOfflineMaven is mvm is not on PATH
Date Wed, 24 Jun 2015 16:25:21 GMT
ZEST-25 Skip checkBinDist_goOfflineMaven is mvm is not on PATH


Project: http://git-wip-us.apache.org/repos/asf/zest-qi4j/repo
Commit: http://git-wip-us.apache.org/repos/asf/zest-qi4j/commit/4f2a0b0b
Tree: http://git-wip-us.apache.org/repos/asf/zest-qi4j/tree/4f2a0b0b
Diff: http://git-wip-us.apache.org/repos/asf/zest-qi4j/diff/4f2a0b0b

Branch: refs/heads/develop
Commit: 4f2a0b0bc957b6fe32fce4d8e91c1b6bdfc0534b
Parents: b110516
Author: Paul Merlin <paulmerlin@apache.org>
Authored: Wed Jun 24 18:25:01 2015 +0200
Committer: Paul Merlin <paulmerlin@apache.org>
Committed: Wed Jun 24 18:25:01 2015 +0200

----------------------------------------------------------------------
 build.gradle | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zest-qi4j/blob/4f2a0b0b/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 170edb4..2658c9c 100644
--- a/build.gradle
+++ b/build.gradle
@@ -760,10 +760,14 @@ task checkBinDist_goOfflineGradle( type: GradleBuild, dependsOn: unpackBinDist
)
   }
 }
 task checkBinDist_goOfflineMaven( type: Exec, dependsOn: unpackBinDist ) {
+  onlyIf {
+    def pathDirs = System.getenv( 'PATH' ).split( File.pathSeparator )
+    pathDirs.collect( { new File( it, 'mvn') } ).flatten().findAll( { it.isFile() } )
+  }
   def dependenciesDir = new File( unpackedBinDistDir, 'dependencies' )
   doFirst { dependenciesDir.deleteDir() }
   workingDir unpackedBinDistDir
-  commandLine 'mvn', '-f', 'go-offline.pom', 'validate'
+  commandLine 'mvn', '-q', '-f', 'go-offline.pom', 'validate'
   doLast {
     releaseApprovedProjects*.configurations.runtime.allDependencies.findAll({it.name}).each
{ dep ->
       def jarArtifactId = dep.name instanceof String ? dep.name : dep.name.last()


Mime
View raw message