Changeset 7063 in josm for trunk/build.xml


Ignore:
Timestamp:
2014-05-04T23:59:19+02:00 (5 years ago)
Author:
Don-vip
Message:

compile and run all tests, including Groovy ones

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r7043 r7063  
    259259        </fileset>
    260260        <pathelement path="dist/josm-custom.jar"/>
     261        <pathelement path="tools/groovy-all-2.2.2.jar"/>
    261262    </path>
    262263    <target name="test-init">
     
    270271    </target>
    271272    <target name="test-compile" depends="test-init,dist">
    272         <javac srcdir="${test.dir}/unit" classpathref="test.classpath" destdir="${test.dir}/build" target="1.7" source="1.7" debug="on"
    273                 includeantruntime="false" createMissingPackageInfoClass="off" encoding="UTF-8">
    274             <compilerarg value="-Xlint:all"/>
    275             <compilerarg value="-Xlint:-serial"/>
    276         </javac>
    277         <javac srcdir="${test.dir}/functional" classpathref="test.classpath" destdir="${test.dir}/build" target="1.7" source="1.7" debug="on"
    278                 includeantruntime="false" createMissingPackageInfoClass="off" encoding="UTF-8">
    279             <compilerarg value="-Xlint:all"/>
    280             <compilerarg value="-Xlint:-serial"/>
    281         </javac>
    282         <javac srcdir="${test.dir}/performance" classpathref="test.classpath" destdir="${test.dir}/build" target="1.7" source="1.7" debug="on"
    283                 includeantruntime="false" createMissingPackageInfoClass="off" encoding="UTF-8">
    284             <compilerarg value="-Xlint:all"/>
    285             <compilerarg value="-Xlint:-serial"/>
    286         </javac>
     273        <taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc" classpath="tools/groovy-all-2.2.2.jar"/>
     274        <groovyc classpathref="test.classpath" destdir="${test.dir}/build" encoding="UTF-8">
     275                <src path="${test.dir}/unit"/>
     276            <src path="${test.dir}/functional"/>
     277            <src path="${test.dir}/performance"/>
     278                <javac target="1.7" source="1.7" debug="on">
     279                <compilerarg value="-Xlint:all"/>
     280                <compilerarg value="-Xlint:-serial"/>
     281                </javac>
     282        </groovyc>
    287283    </target>
    288284    <target name="test" depends="test-compile">
     
    302298                <formatter type="xml"/>
    303299                <batchtest fork="yes" todir="${test.dir}/report">
    304                     <fileset dir="${test.dir}/unit" includes="**/*.java"/>
     300                    <fileset dir="${test.dir}/build" includes="**/*Test.class"/>
    305301                </batchtest>
    306302            </junit>
Note: See TracChangeset for help on using the changeset viewer.