Changeset 19688 in josm for trunk/build.xml


Ignore:
Timestamp:
2026-11-11T11:11:10+01:00 (less than one hour ago)
Author:
gaben
Message:

see #24635 - give PMD the compiled classes and dependencies for type resolution

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r19680 r19688  
    938938    </target>
    939939
    940     <target name="pmd" depends="init" description="Run PMD on the source files">
     940    <target name="pmd" depends="compile" description="Run PMD on the source files">
    941941        <ivy:cachepath log="download-only" file="${tools.ivy}" pathid="pmd.classpath" conf="pmd"/>
    942942        <taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask" classpathref="pmd.classpath"/>
    943943        <pmd cacheLocation="${pmd.dir}/cache" encoding="UTF-8">
    944944            <sourceLanguage name="java" version="${java.lang.version}" />
     945            <!-- PMD needs the Java runtime, the compiled classes and the dependencies to resolve types -->
     946            <auxclasspath>
     947                <pathelement location="${java.home}/lib/jrt-fs.jar"/>
     948                <pathelement location="${build.dir}"/>
     949                <path refid="compile.path"/>
     950            </auxclasspath>
    945951            <ruleset>${pmd.dir}/josm-ruleset.xml</ruleset>
    946952            <formatter type="text" toConsole="true" />
Note: See TracChangeset for help on using the changeset viewer.