You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@polygene.apache.org by pa...@apache.org on 2016/12/24 10:29:31 UTC
[19/19] zest-java git commit: http: disable vhost tests when offline
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 <pa...@apache.org>
Authored: Sat Dec 24 11:21:26 2016 +0100
Committer: Paul Merlin <pa...@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'