Thanks. I installed jdk190-ea136 and added an additional test: ... <loadresource property="valueFromJava"> <javaconstant name="org.apache.ant.test.MRJarTest.VERSION"> <classpath> <pathelement location="${antunit.tmpdir}/mrjar.jar"/> </classpath> </javaconstant> </loadresource> ... <!-- If we are running on Java9, we could really try the MRJar --> <sequential if:set="jdk9+" xmlns:if="ant:if"> <echo>running on Java9</echo> <au:assertEquals expected="Java9" actual="${valueFromJava}" message="Running on Java9 we should have read the Java9-value jdk9=${jdk9+} value=${valueFromJava}"/> </sequential>
But it loads only the Java8-value, not the Java9 from .../versions/9/... Having a look with a hex editor the Java9 value is inside the class file. Any idea? Jan > -----Ursprüngliche Nachricht----- > Von: Stefan Bodewig [mailto:bode...@apache.org] > Gesendet: Mittwoch, 21. September 2016 19:03 > An: dev@ant.apache.org > Betreff: Re: Multi-Release JARs > > On 2016-09-21, Jan Matèrne (jhm) wrote: > > > I did a simple version using plain <jar> and <zipfileset>. > > Nice. > > Stefan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional > commands, e-mail: dev-h...@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org