I installed jdk190-ea136 and added an additional test:
    <loadresource property="valueFromJava">
      <javaconstant name="org.apache.ant.test.MRJarTest.VERSION">
          <pathelement location="${antunit.tmpdir}/mrjar.jar"/>
    <!-- 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>
        expected="Java9" actual="${valueFromJava}" 
        message="Running on Java9 we should have read the Java9-value  
jdk9=${jdk9+}  value=${valueFromJava}"/>

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?


> -----Urspr√ľngliche Nachricht-----
> Von: Stefan Bodewig []
> Gesendet: Mittwoch, 21. September 2016 19:03
> An:
> 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: For additional
> commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to