Ignore:
Timestamp:
2016-09-03T01:48:19+02:00 (8 years ago)
Author:
donvip
Message:

add java 9 compatibility for locating jaxb compiler (xjc)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/build-common.xml

    r32894 r32900  
    3535        <os family="Windows"/>
    3636    </condition>
    37     <target name="-jaxb_win" if="isWindows">
    38         <property name="xjc" value="${java.home}\..\bin\xjc.exe" />
    39     </target>
    40     <target name="-jaxb_nix" unless="isWindows">
    41         <property name="xjc" value="${java.home}/../bin/xjc" />
     37    <!-- For Java9-specific stuff -->
     38    <condition property="isJava9">
     39        <equals arg1="${ant.java.version}" arg2="1.9" />
     40    </condition>
     41    <target name="-jaxb_before9" unless="isJava9">
     42        <property name="xjc" value="${java.home}${file.separator}..${file.separator}bin${file.separator}xjc" />
     43    </target>
     44    <target name="-jaxb_after9" if="isJava9">
     45        <property name="xjc" value="${java.home}${file.separator}bin${file.separator}xjc" />
    4246    </target>
    4347
Note: See TracChangeset for help on using the changeset viewer.