Ignore:
Timestamp:
2018-06-29T21:57:20+02:00 (6 years ago)
Author:
donvip
Message:

see #josm15560, see #josm16047 - fix java version

File:
1 edited

Legend:

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

    r34363 r34364  
    2727    <!-- this is the directory where the plugin jar is copied to -->
    2828    <property name="plugin.dist.dir"        location="../../dist"/>
    29     <property name="ant.build.javac.target" value="1.8"/>
    30     <property name="ant.build.javac.source" value="1.8"/>
     29    <property name="java.lang.version"      value="1.8" />
    3130    <property name="plugin.jar"             location="${plugin.dist.dir}/${ant.project.name}.jar"/>
    3231    <property name="plugin.sources.jar"     location="${plugin.dist.dir}/${ant.project.name}-sources.jar"/>
     
    9897    <target name="compile" depends="init, pre-compile" unless="skip-compile">
    9998        <echo message="compiling sources for ${plugin.jar} ..."/>
    100         <javac compiler="${javac.compiler}" srcdir="${plugin.src.dir}" debug="true" destdir="${plugin.build.dir}" includeantruntime="false" encoding="UTF-8">
     99        <javac compiler="${javac.compiler}" srcdir="${plugin.src.dir}" debug="true" destdir="${plugin.build.dir}" includeantruntime="false"
     100            encoding="UTF-8" target="${java.lang.version}" source="${java.lang.version}">
    101101            <compilerclasspath>
    102102                <pathelement location="${error_prone_ant.jar}"/>
     
    521521    <target name="test-compile" depends="test-init,dist" if="test.present">
    522522        <sequential>
    523             <javac debug="on" includeantruntime="false" srcdir="${plugin.test.dir}/unit" destdir="${plugin.test.dir}/build/unit" encoding="UTF-8">
     523            <javac debug="on" includeantruntime="false" srcdir="${plugin.test.dir}/unit" destdir="${plugin.test.dir}/build/unit" encoding="UTF-8"
     524                target="${java.lang.version}" source="${java.lang.version}">
    524525                <classpath>
    525526                    <fileset refid="plugin.requires.jars"/>
     
    567568        <mkdir dir="${checkstyle-build.dir}"/>
    568569        <javac sourcepath="" srcdir="../00_core_tools/checkstyle/src" failonerror="true"
    569             destdir="${checkstyle-build.dir}" target="${ant.build.javac.target}" source="${ant.build.javac.source}" debug="on"
     570            destdir="${checkstyle-build.dir}" target="${java.lang.version}" source="${java.lang.version}" debug="on"
    570571            includeantruntime="false" createMissingPackageInfoClass="false"
    571572            encoding="UTF-8" classpath="${checkstyle.jar}">
Note: See TracChangeset for help on using the changeset viewer.