Changeset 32900 in osm for applications


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

add java 9 compatibility for locating jaxb compiler (xjc)

Location:
applications/editors/josm/plugins
Files:
3 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
  • applications/editors/josm/plugins/dataimport/build.xml

    r32680 r32900  
    2222    <import file="../build-common.xml"/>
    2323
    24     <target name="pre-compile" depends="-jaxb_win, -jaxb_nix" unless="jaxb.notRequired">
     24    <target name="pre-compile" depends="-jaxb_before9, -jaxb_after9" unless="jaxb.notRequired">
    2525        <exec executable="${xjc}" failonerror="true">
    2626            <arg value="-d"/>
  • applications/editors/josm/plugins/opendata/build.xml

    r32680 r32900  
    8989    </target>
    9090   
    91     <target name="xjc_neptune" depends="init, -jaxb_win, -jaxb_nix" unless="jaxb.notRequired">
     91    <target name="xjc_neptune" depends="init, -jaxb_before9, -jaxb_after9" unless="jaxb.notRequired">
    9292        <exec executable="${xjc}" failonerror="true">
    9393            <arg value="-d"/>
Note: See TracChangeset for help on using the changeset viewer.