2014-11-20 9:18 GMT+03:00 Bill Barker <billwbar...@verizon.net>: > > >> "Konstantin Kolinko" wrote in message >> news:cabzhfvnamg1x0rtv3gyxckxq39pzbpsks6fytbfnmrbjz26...@mail.gmail.com... >> >> >> 2014-11-20 6:09 GMT+03:00 Bill Barker <billbar...@apache.org>: >>> >>> To whom it may engage... >>> >>> This is an automated request, but not an unsolicited one. For >>> more information please visit http://gump.apache.org/nagged.html, >>> and/or contact the folk at gene...@gump.apache.org. >>> >>> Project tomcat-tc7.0.x-test-bio has an issue affecting its community >>> integration. >>> This issue affects 1 projects. >>> The current state of this project is 'Failed', with reason 'Build >>> Failed'. >>> For reference only, the following projects are affected by this: >>> - tomcat-tc7.0.x-test-bio : Tomcat 7.x, a web server implementing >>> Java Servlet 3.0, >>> ... >>> >>> >>> Full details are available at: >>> >>> >>> http://vmgump.apache.org/gump/public/tomcat-7.0.x/tomcat-tc7.0.x-test-bio/index.html >> >> >> >> The tests fail with >> >> java/lang/UnsupportedClassVersionError: java/lang/Object : Unsupported >> major.minor version 52.0 >> >> >> In Tomcat 7 we have >> <target name="test-init1" if="java.7.home"> >> <property name="java.bin.path" value="${java.7.home}/bin/"/> >> </target> >> <target name="test-init2" unless="java.7.home"> >> <property name="java.bin.path" value=""/> >> </target> >> >> <junit ... >> jvm="${java.bin.path}java" > >> >> Gump explicitly launches Ant with Java 8 as >> >> /usr/lib/jvm/java-8-oracle/bin/java -Djava.awt.headless=true >> -Dbuild.sysclasspath=only org.apache.tools.ant.Main ... >> >> but apparently JUnit here is picking a different Java. >> >> I thought that using <junit jvm="java"> will pick Java that was used >> to launch Ant in accordance with default setting for that attribute >> [1]. Apparently this is not true and some older java is actually >> picked. Is it from PATH? >> > > Yes, it is picking up what ever Java is first in the $PATH. When Java-8 was > installed on vmgump, the first one on the $PATH was left as Java-7.
Thank you for the info. I think that this should be fixed by http://svn.apache.org/r1640708 >> >> [1] http://ant.apache.org/manual/Tasks/junit.html >> Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org