Changeset 7040 in josm for trunk/build.xml


Ignore:
Timestamp:
2014-05-02T00:04:06+02:00 (11 years ago)
Author:
Don-vip
Message:

tests/build update:

  • update Jacoco to version 0.7.0
  • compile performance tests even if not run by ant task
  • do not create empty package-info.class files in javac task
  • move RemoteControl test to unit tests to get coverage information
  • fix NPEs seen in tests in headless mode
  • proper test failures when properties files can not be loaded


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r7027 r7040  
    199199        <!-- COTS -->
    200200        <javac srcdir="src" includes="com/**,oauth/**,org/apache/commons/codec/**,org/glassfish/**" nowarn="on"
    201                 destdir="build" target="1.7" source="1.7" debug="on" includeantruntime="false" encoding="iso-8859-1">
     201                destdir="build" target="1.7" source="1.7" debug="on" includeantruntime="false" createMissingPackageInfoClass="false" encoding="iso-8859-1">
    202202            <!-- get rid of "internal proprietary API" warning -->
    203203                <compilerarg value="-XDignore.symbol.file"/>
     
    205205        <!-- JMapViewer/JOSM -->
    206206        <javac srcdir="src" excludes="com/**,oauth/**,org/apache/commons/codec/**,org/glassfish/**,org/openstreetmap/gui/jmapviewer/Demo.java"
    207                 destdir="build" target="1.7" source="1.7" debug="on" includeantruntime="false" encoding="UTF-8">
     207                destdir="build" target="1.7" source="1.7" debug="on" includeantruntime="false" createMissingPackageInfoClass="false" encoding="UTF-8">
    208208            <compilerarg value="-Xlint:cast"/>
    209209            <compilerarg value="-Xlint:deprecation"/>
     
    268268    </target>
    269269    <target name="test-compile" depends="test-init,dist">
    270         <javac srcdir="${test.dir}/unit" classpathref="test.classpath" destdir="${test.dir}/build" target="1.7" source="1.7" debug="on" includeantruntime="false" encoding="UTF-8">
     270        <javac srcdir="${test.dir}/unit" classpathref="test.classpath" destdir="${test.dir}/build" target="1.7" source="1.7" debug="on"
     271                includeantruntime="false" createMissingPackageInfoClass="off" encoding="UTF-8">
    271272            <compilerarg value="-Xlint:all"/>
    272273            <compilerarg value="-Xlint:-serial"/>
    273274        </javac>
    274         <javac srcdir="${test.dir}/functional" classpathref="test.classpath" destdir="${test.dir}/build" target="1.7" source="1.7" debug="on" includeantruntime="false" encoding="UTF-8">
     275        <javac srcdir="${test.dir}/functional" classpathref="test.classpath" destdir="${test.dir}/build" target="1.7" source="1.7" debug="on"
     276                includeantruntime="false" createMissingPackageInfoClass="off" encoding="UTF-8">
     277            <compilerarg value="-Xlint:all"/>
     278            <compilerarg value="-Xlint:-serial"/>
     279        </javac>
     280        <javac srcdir="${test.dir}/performance" classpathref="test.classpath" destdir="${test.dir}/build" target="1.7" source="1.7" debug="on"
     281                includeantruntime="false" createMissingPackageInfoClass="off" encoding="UTF-8">
    275282            <compilerarg value="-Xlint:all"/>
    276283            <compilerarg value="-Xlint:-serial"/>
Note: See TracChangeset for help on using the changeset viewer.