Changeset 16166 in josm


Ignore:
Timestamp:
2020-03-17T21:38:32+01:00 (6 years ago)
Author:
simon04
Message:

see #16860 - Resolve SpotBugs using Apache Ivy

Location:
trunk
Files:
17 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r16165 r16166  
    948948
    949949    <target name="spotbugs" depends="dist">
    950         <taskdef name="spotbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpath="${spotbugs.dir}/spotbugs-ant.jar"/>
    951         <path id="spotbugs-classpath">
    952             <fileset dir="${spotbugs.dir}">
    953                 <include name="*.jar"/>
    954             </fileset>
    955         </path>
    956         <property name="spotbugs-classpath" refid="spotbugs-classpath"/>
     950        <ivy:cachepath pathid="spotbugs.classpath" conf="spotbugs"/>
     951        <taskdef name="spotbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpath="${toString:spotbugs.classpath}"/>
    957952        <spotbugs output="xml"
    958953                outputFile="spotbugs-josm.xml"
    959                 classpath="${spotbugs-classpath}"
     954                classpath="${toString:spotbugs.classpath}"
    960955                pluginList=""
    961956                excludeFilter="${spotbugs.dir}/josm-filter.xml"
  • trunk/ivy.xml

    r16165 r16166  
    1111        <conf name="provided" description="The libs we need during compilation but not on application start"/>
    1212        <conf name="pmd" description="Everything needed for running PMD"/>
     13        <conf name="spotbugs" description="Everything needed for running SpotBugs"/>
    1314        <conf name="epsg" description="Everything epsg needs- which is currently all of JOSM."/>
    1415        <!--  Meta configuration used in build scripts -->
     
    3435            <artifact name="saxon" type="jar" maven:classifier="dom"/>
    3536        </dependency>
     37        <!-- spotbugs->default -->
     38        <dependency org="com.github.spotbugs" name="spotbugs" rev="3.1.12" conf="spotbugs->default"/>
     39        <dependency org="com.github.spotbugs" name="spotbugs-ant" rev="3.1.12" conf="spotbugs->default"/>
    3640        <!-- sources->sources -->
    3741        <dependency org="javax.json" name="javax.json-api" rev="1.1.4" conf="sources->sources"/>
Note: See TracChangeset for help on using the changeset viewer.