Changeset 18974 in josm for trunk/build.xml
- Timestamp:
- 2024-02-12T23:00:59+01:00 (2 years ago)
- File:
-
- 1 edited
-
trunk/build.xml (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/build.xml
r18871 r18974 72 72 <property name="proj-build.dir" location="${base.dir}/build2"/> 73 73 <property name="script-build.dir" location="${base.dir}/build2"/> 74 <property name="checkstyle-build.dir" location="${base.dir}/build2"/>75 74 <property name="epsg.output" location="${resources.dir}/data/projection/custom-epsg"/> 76 75 <property name="commons-lang3.jar" location="${tools.dir}/commons-lang3.jar"/> … … 363 362 <delete dir="${proj-build.dir}"/> 364 363 <delete dir="${script-build.dir}"/> 365 <delete dir="${checkstyle-build.dir}"/>366 364 <delete dir="${dist.dir}"/> 367 365 <delete dir="${mapcss.dir}/parsergen"/> … … 883 881 </target> 884 882 885 <target name="checkstyle-c ompile" depends="init" description="CompileCheckstylerules">883 <target name="checkstyle-changed" depends="init" description="Run Checkstyle on SVN/Git-changed source files"> 886 884 <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">895 885 <exec append="false" osfamily="unix" executable="bash" failifexecutionfails="true"> 896 886 <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:'"/> 898 888 </exec> 899 889 <exec append="false" osfamily="windows" executable="powershell" failifexecutionfails="true"> 900 890 <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"/> 905 896 <taskdef resource="com/puppycrawl/tools/checkstyle/ant/checkstyle-ant-task.properties"> 906 897 <classpath refid="checkstyle.classpath"/> 907 <classpath path="${checkstyle-build.dir}"/>908 898 </taskdef> 909 899 <checkstyle config="${checkstyle.dir}/josm_checks.xml">
Note:
See TracChangeset
for help on using the changeset viewer.
