Skip to content

Commit 5683a1a

Browse files
committed
Add the build classpath to checkstyle (workaround).
This is a workaround for a long-standing Checkstyle bug, http://jira.codehaus.org/browse/MPCHECKSTYLE-20
1 parent fc6829e commit 5683a1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,11 @@
117117
</apply>
118118
</target>
119119

120-
<target name="check">
120+
<target name="check" depends="compile">
121121
<taskdef resource="checkstyletask.properties"/>
122122
<checkstyle config="checkstyle.xml">
123123
<fileset dir="src" includes="**/*.java"/>
124+
<classpath path="${build.classes.dir}"/>
124125
</checkstyle>
125126
</target>
126127

0 commit comments

Comments
 (0)