I was hoping to learn what it is needed for... On Mon, Jun 25, 2012 at 5:43 PM, Paul Merlin <[email protected]> wrote: > Niclas Hedhman a écrit : >> >> Paul, >> What is that? > > It is used by the http library for testing virtualhosts support. > > The jvm provide a way to hook into the name resolution. The tests use > this facility and dnsjava to run the tests as if test names were > resolvable in order to trick Jetty. > > It's registered in libraries/http/build.gradle: > > test { > systemProperties 'networkaddress.cache.ttl': '0' > systemProperties 'sun.net.spi.nameservice.provider.1': > 'dns,LocalManagedDns' > } > > and using ServiceLoaders, see in > libraries/http/src/test/resources/META-INF/services > > Gradle run unit tests in a forked jvm by default since 0.9 so this should > not > disturb the rest of the build. > > > >> I get all kinds of funny exceptions during the build. For instance the >> one below, where it seems that this class is called from Gradle >> somehow. > > The stacktrace show a failed name resolution attempt during test report > generation. dnsjava prints it to stderr... > I can't reproduce it, does the build fail ? > > > >> The fact that it uses sun.* namespace also worries me. For instance, >> the "Get Qi4j SDK to build/run on IBM JDK" might be blocked by this. > > About IBM JDK, it supports most of the sun network properties. I don't > have time right now to install/setup it on my laptop and couldn't find > any reliable source about this specific property support but I'm pretty > confident as the IBM JDK is based on the Sun one. Still need to try it > with live bullets. > > /Paul > > _______________________________________________ > qi4j-dev mailing list > [email protected] > http://lists.ops4j.org/mailman/listinfo/qi4j-dev
-- Niclas Hedhman, Software Developer http://www.qi4j.org - New Energy for Java I live here; http://tinyurl.com/3xugrbk I work here; http://tinyurl.com/6a2pl4j I relax here; http://tinyurl.com/2cgsug _______________________________________________ qi4j-dev mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/qi4j-dev

