ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Matèrne (jhm) <apa...@materne.de>
Subject AW: Multi-Release JARs
Date Thu, 22 Sep 2016 07:02:32 GMT
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:bodewig@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-unsubscribe@ant.apache.org For additional
> commands, e-mail: dev-help@ant.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message