Ignore:
Timestamp:
2020-03-21T09:42:41+01:00 (4 years ago)
Author:
simon04
Message:

see #josm16860 - Add ant resolve-tools target

File:
1 edited

Legend:

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

    r35387 r35389  
    627627    </target>
    628628
    629     <target name="checkstyle-compile">
    630         <ivy:cachepath file="${core.tools.ivy}" pathid="checkstyle.classpath" conf="checkstyle"/>
     629    <target name="checkstyle-compile" depends="resolve-tools">
    631630        <mkdir dir="${checkstyle-build.dir}"/>
    632631        <javac sourcepath="" srcdir="../00_core_tools/checkstyle/src" failonerror="true"
     
    663662    </target>
    664663
    665     <target name="spotbugs" depends="compile">
    666         <ivy:cachepath file="${core.tools.ivy}" pathid="spotbugs.classpath" conf="spotbugs"/>
     664    <target name="spotbugs" depends="compile,resolve-tools">
    667665        <taskdef name="spotbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpath="${toString:spotbugs.classpath}"/>
    668666        <spotbugs output="xml"
     
    724722        <taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>
    725723    </target>
     724    <target name="resolve-tools" depends="init-ivy" description="Resolves tools using Apache Ivy">
     725        <ivy:resolve file="${core.tools.ivy}"/>
     726        <ivy:cachepath file="${core.tools.ivy}" pathid="checkstyle.classpath" conf="checkstyle"/>
     727        <ivy:cachepath file="${core.tools.ivy}" pathid="spotbugs.classpath" conf="spotbugs"/>
     728    </target>
    726729    <target name="clean_ivy">
    727730        <delete failonerror="false">
Note: See TracChangeset for help on using the changeset viewer.