Index: trunk/build.xml
===================================================================
--- trunk/build.xml	(revision 8173)
+++ trunk/build.xml	(revision 8508)
@@ -572,4 +572,13 @@
     </target>
 
+    <target name="checkstyle">
+        <taskdef resource="checkstyletask.properties" classpath="tools/checkstyle/checkstyle-6.7-all.jar"/>
+        <checkstyle config="tools/checkstyle/josm_checks.xml">
+            <fileset dir="${basedir}/src/org/openstreetmap/josm" includes="**/*.java"/>
+            <fileset dir="${basedir}/test" includes="**/*.java"/>
+            <formatter type="xml" toFile="checkstyle-josm.xml"/>
+        </checkstyle>
+    </target>
+
     <target name="findbugs" depends="dist">
         <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpath="tools/findbugs/findbugs-ant.jar"/>
