polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paulmer...@apache.org
Subject [19/19] zest-java git commit: http: disable vhost tests when offline
Date Sat, 24 Dec 2016 10:29:31 GMT
http: disable vhost tests when offline


Project: http://git-wip-us.apache.org/repos/asf/zest-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/zest-java/commit/0984d0ba
Tree: http://git-wip-us.apache.org/repos/asf/zest-java/tree/0984d0ba
Diff: http://git-wip-us.apache.org/repos/asf/zest-java/diff/0984d0ba

Branch: refs/heads/develop
Commit: 0984d0ba968fa91bcfe6e20b804e82bbd0c8dd71
Parents: 56b2626
Author: Paul Merlin <paulmerlin@apache.org>
Authored: Sat Dec 24 11:21:26 2016 +0100
Committer: Paul Merlin <paulmerlin@apache.org>
Committed: Sat Dec 24 11:21:26 2016 +0100

----------------------------------------------------------------------
 libraries/http/build.gradle | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zest-java/blob/0984d0ba/libraries/http/build.gradle
----------------------------------------------------------------------
diff --git a/libraries/http/build.gradle b/libraries/http/build.gradle
index 864b51f..d665eb3 100644
--- a/libraries/http/build.gradle
+++ b/libraries/http/build.gradle
@@ -63,6 +63,16 @@ if( JavaVersion.current() < JavaVersion.VERSION_1_9 )
     vhostTestCompile( libraries.dnsjava )
   }
   task vhostTest( type: Test ) {
+    // TODO Test JVM won't start when offline
+    try
+    {
+      new URL( 'https://polygene.apache.org/' ).text
+      enabled = true
+    }
+    catch( Exception ex )
+    {
+      enabled = false
+    }
     testClassesDir = sourceSets.vhostTest.output.classesDir
     classpath = sourceSets.vhostTest.runtimeClasspath
     systemProperties 'networkaddress.cache.ttl': '0'


Mime
View raw message