Changeset 18974 in josm for trunk/build.xml


Ignore:
Timestamp:
2024-02-12T23:00:59+01:00 (2 years ago)
Author:
taylor.smock
Message:

Fix #23465: Remove custom checkstyle plugin

TopLevelJavadocCheck.java is duplicating functionality from MissingJavadocType.
Our custom class is from #14794 (closed 2017-10-16). The check that makes it
redundant was added in checkstyle 8.20 (released 2019-04-28).

This adds the missing javadocs for the more comprehensive checkstyle version.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r18871 r18974  
    7272        <property name="proj-build.dir" location="${base.dir}/build2"/>
    7373        <property name="script-build.dir" location="${base.dir}/build2"/>
    74         <property name="checkstyle-build.dir" location="${base.dir}/build2"/>
    7574        <property name="epsg.output" location="${resources.dir}/data/projection/custom-epsg"/>
    7675        <property name="commons-lang3.jar" location="${tools.dir}/commons-lang3.jar"/>
     
    363362        <delete dir="${proj-build.dir}"/>
    364363        <delete dir="${script-build.dir}"/>
    365         <delete dir="${checkstyle-build.dir}"/>
    366364        <delete dir="${dist.dir}"/>
    367365        <delete dir="${mapcss.dir}/parsergen"/>
     
    883881    </target>
    884882
    885     <target name="checkstyle-compile" depends="init" description="Compile Checkstyle rules">
     883    <target name="checkstyle-changed" depends="init" description="Run Checkstyle on SVN/Git-changed source files">
    886884        <ivy:cachepath log="download-only" file="${tools.ivy}" pathid="checkstyle.classpath" conf="checkstyle"/>
    887         <mkdir dir="${checkstyle-build.dir}"/>
    888         <javac sourcepath="" srcdir="${checkstyle.dir}/src" failonerror="true"
    889             destdir="${checkstyle-build.dir}" release="${java.lang.version}" debug="on"
    890             includeantruntime="false"
    891             encoding="UTF-8" classpathref="checkstyle.classpath">
    892         </javac>
    893     </target>
    894     <target name="checkstyle-changed" depends="checkstyle-compile" description="Run Checkstyle on SVN/Git-changed source files">
    895885        <exec append="false" osfamily="unix" executable="bash" failifexecutionfails="true">
    896886            <arg value="-c"/>
    897             <arg value="(git ls-files src test --modified 2>/dev/null || svn status -q --ignore-externals src test) | grep -o '\(src\|test\)/.*' | xargs java -cp '${toString:checkstyle.classpath}:${checkstyle-build.dir}' com.puppycrawl.tools.checkstyle.Main -c ${checkstyle.dir}/josm_checks.xml | sed -e 's:\([^ ]*\) [^:]*/\([^:/]*.java\:[^:]*\):(\2)\1:'"/>
     887            <arg value="(git ls-files src test --modified 2>/dev/null || svn status -q --ignore-externals src test) | grep -o '\(src\|test\)/.*' | xargs java -cp '${toString:checkstyle.classpath}' com.puppycrawl.tools.checkstyle.Main -c ${checkstyle.dir}/josm_checks.xml | sed -e 's:\([^ ]*\) [^:]*/\([^:/]*.java\:[^:]*\):(\2)\1:'"/>
    898888        </exec>
    899889        <exec append="false" osfamily="windows" executable="powershell" failifexecutionfails="true">
    900890            <arg value="/c"/>
    901             <arg value="svn status -q --ignore-externals src test | ForEach-Object {java -cp '${toString:checkstyle.classpath};${checkstyle-build.dir}' com.puppycrawl.tools.checkstyle.Main -c ${checkstyle.dir}/josm_checks.xml $_.split(' ')[7]}"/>
    902         </exec>
    903     </target>
    904     <target name="checkstyle" depends="checkstyle-compile" description="Run Checkstyle on the source files">
     891            <arg value="svn status -q --ignore-externals src test | ForEach-Object {java -cp '${toString:checkstyle.classpath}' com.puppycrawl.tools.checkstyle.Main -c ${checkstyle.dir}/josm_checks.xml $_.split(' ')[7]}"/>
     892        </exec>
     893    </target>
     894    <target name="checkstyle" depends="init" description="Run Checkstyle on the source files">
     895        <ivy:cachepath log="download-only" file="${tools.ivy}" pathid="checkstyle.classpath" conf="checkstyle"/>
    905896        <taskdef resource="com/puppycrawl/tools/checkstyle/ant/checkstyle-ant-task.properties">
    906897            <classpath refid="checkstyle.classpath"/>
    907             <classpath path="${checkstyle-build.dir}"/>
    908898        </taskdef>
    909899        <checkstyle config="${checkstyle.dir}/josm_checks.xml">
Note: See TracChangeset for help on using the changeset viewer.