Ignore:
Timestamp:
2016-06-18T03:37:43+02:00 (8 years ago)
Author:
donvip
Message:

rework/simplify plugins build.xml file - automatically run unit tests of all plugins, without having to maintain list manually

File:
1 edited

Legend:

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

    r32188 r32306  
    430430        </sequential>
    431431    </macrodef>
    432     <target name="test-init">
     432    <target name="check-test">
     433        <available file="${plugin.test.dir}" type="dir" property="test.present"/>
     434    </target>
     435    <target name="test-init" depends="check-test" if="test.present">
    433436        <mkdir dir="${plugin.test.dir}/build"/>
    434437        <mkdir dir="${plugin.test.dir}/build/unit"/>
     
    443446        <delete dir="${plugin.test.dir}/config/unit-josm.home/cache" failonerror="false"/>
    444447    </target>
    445     <target name="test-compile" depends="test-init,dist">
     448    <target name="test-compile" depends="test-init,dist" if="test.present">
    446449        <taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc" classpath="${groovy.jar}"/>
    447450        <sequential>
     
    458461        </sequential>
    459462    </target>
    460     <target name="test" depends="dist, test-clean, test-compile"
     463    <target name="test" depends="dist, test-clean, test-compile" if="test.present"
    461464        description="Run unit tests. OSM API (TEST) account shall be set with -Dosm.username and -Dosm.password">
    462465        <taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml" classpath="../00_core_tools/jacocoant.jar" />
Note: See TracChangeset for help on using the changeset viewer.