Changeset 3509 in josm for trunk/build.xml


Ignore:
Timestamp:
2010-09-02T20:01:29+02:00 (14 years ago)
Author:
bastiK
Message:

make java 6 warning message from [3417] work again. Basically it does not matter much if you put 1.5 or 1.6 there, but in this case it does: If you compile with 1.6 option and run with 1.5 jre, it fails at once. If you compile with 1.5 option, it will run normally, but fail as soon as it requires a java 6 class that is not shipped with 1.5 jre.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r3442 r3509  
    120120        <target name="compile" depends="init">
    121121                <javac srcdir="src" classpathref="classpath" destdir="build"
    122                                 target="1.6" source="1.6" debug="on" encoding="UTF-8">
     122                                target="1.5" source="1.5" debug="on" encoding="UTF-8">
    123123                        <compilerarg value="-Xlint:deprecation"/>
    124124                        <compilerarg value="-Xlint:unchecked"/>
     
    157157        <target name="test-compile" depends="test-init">
    158158                <javac srcdir="${src.dir}:${test.dir}/unit" classpathref="test.classpath" destdir="${test.dir}/${build.dir}"
    159                                 target="1.6" source="1.6" debug="on" encoding="UTF-8">
     159                                target="1.5" source="1.5" debug="on" encoding="UTF-8">
    160160                        <compilerarg value="-Xlint:deprecation"/>
    161161                        <compilerarg value="-Xlint:unchecked"/>
    162162                </javac>
    163163                <javac srcdir="${src.dir}:${test.dir}/functional" classpathref="test.classpath" destdir="${test.dir}/${build.dir}"
    164                                                 target="1.6" source="1.6" debug="on" encoding="UTF-8">
     164                                                target="1.5" source="1.5" debug="on" encoding="UTF-8">
    165165                        <compilerarg value="-Xlint:deprecation"/>
    166166                        <compilerarg value="-Xlint:unchecked"/>
Note: See TracChangeset for help on using the changeset viewer.