Changeset 32678 in osm


Ignore:
Timestamp:
2016-07-21T02:36:09+02:00 (8 years ago)
Author:
donvip
Message:

see #josm11390 - switch to Java 8

File:
1 edited

Legend:

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

    r32673 r32678  
    1616    <property name="josm.test.build.dir"    location="../../core/test/build"/>
    1717    <property name="groovy.jar"             location="../00_core_tools/groovy-all-2.4.7.jar"/>
     18    <property name="error_prone_ant.jar"    location="../00_core_tools/error_prone_ant-2.0.9.jar"/>
    1819    <property name="checkstyle.jar"         location="../00_core_tools/checkstyle/checkstyle-7.0-all.jar"/>
    1920    <property name="findbugs-ant.jar"       location="../00_core_tools/findbugs/findbugs-ant.jar"/>
     
    2526    <!-- this is the directory where the plugin jar is copied to -->
    2627    <property name="plugin.dist.dir"        location="../../dist"/>
    27     <property name="ant.build.javac.target" value="1.7"/>
    28     <property name="ant.build.javac.source" value="1.7"/>
     28    <property name="ant.build.javac.target" value="1.8"/>
     29    <property name="ant.build.javac.source" value="1.8"/>
    2930    <property name="plugin.jar"             location="${plugin.dist.dir}/${ant.project.name}.jar"/>
    3031
     
    7172    <target name="compile" depends="init, pre-compile" unless="skip-compile">
    7273        <echo message="compiling sources for ${plugin.jar} ..."/>
    73         <javac srcdir="src" debug="true" destdir="${plugin.build.dir}" includeantruntime="false" encoding="UTF-8">
     74        <javac compiler="com.google.errorprone.ErrorProneAntCompilerAdapter" srcdir="src" debug="true" destdir="${plugin.build.dir}" includeantruntime="false" encoding="UTF-8">
     75            <compilerclasspath>
     76                <pathelement location="${error_prone_ant.jar}"/>
     77            </compilerclasspath>
    7478            <compilerarg value="-Xlint:deprecation"/>
    7579            <compilerarg value="-Xlint:unchecked"/>
Note: See TracChangeset for help on using the changeset viewer.