Changeset 35379 in osm for applications/editors/josm


Ignore:
Timestamp:
2020-03-17T23:05:26+01:00 (5 years ago)
Author:
simon04
Message:

see #see16860 - Resolve Checkstyle using Apache Ivy

File:
1 edited

Legend:

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

    r35378 r35379  
    2323    <property name="failureaccess.jar"      location="../00_core_tools/failureaccess.jar"/>
    2424    <property name="guava.jar"              location="../00_core_tools/guava.jar"/>
    25     <property name="checkstyle.jar"         location="../00_core_tools/checkstyle/checkstyle-all.jar"/>
    2625    <property name="checkstyle-build.dir"   location="../00_core_tools/checkstyle/build"/>
    2726    <property name="jformatstring.jar"      location="../00_core_tools/spotbugs/jFormatString-3.0.0.jar"/>
     
    632631
    633632    <target name="checkstyle-compile">
     633        <ivy:cachepath file="${core.tools.ivy}" pathid="checkstyle.classpath" conf="checkstyle"/>
    634634        <mkdir dir="${checkstyle-build.dir}"/>
    635635        <javac sourcepath="" srcdir="../00_core_tools/checkstyle/src" failonerror="true"
    636636            destdir="${checkstyle-build.dir}" target="${java.lang.version}" source="${java.lang.version}" debug="on"
    637637            includeantruntime="false" createMissingPackageInfoClass="false"
    638             encoding="UTF-8" classpath="${checkstyle.jar}">
     638            encoding="UTF-8" classpathref="checkstyle.classpath">
    639639        </javac>
    640640    </target>
    641641    <target name="checkstyle" depends="checkstyle-compile">
    642         <taskdef resource="com/puppycrawl/tools/checkstyle/ant/checkstyle-ant-task.properties" classpath="${checkstyle.jar}:${checkstyle-build.dir}"/>
     642        <taskdef resource="com/puppycrawl/tools/checkstyle/ant/checkstyle-ant-task.properties">
     643            <classpath refid="checkstyle.classpath"/>
     644            <classpath path="${checkstyle-build.dir}"/>
     645        </taskdef>
    643646        <checkstyle config="${basedir}/../checkstyle-config.xml">
    644647            <fileset dir="${basedir}/src" includes="**/*.java" excludes="boofcv/**/*.java,
Note: See TracChangeset for help on using the changeset viewer.