added antlib.xml with checkstyle task definition. Also fixed line numbers in suppressions.xml

This commit is contained in:
Oleg Sukhodolsky 2005-10-31 11:12:23 +00:00
parent d3dd058645
commit 73e2e24fca
4 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,6 @@
<?xml version="1.0"?>
<antlib>
<taskdef name="checkstyle"
classname="com.puppycrawl.tools.checkstyle.CheckStyleTask">
</taskdef>
</antlib>

View File

@ -79,6 +79,27 @@
<source>
&lt;taskdef resource=&quot;checkstyletask.properties&quot;/&gt;
</source>
<p>
Or if you use Ant 1.6 and later and assuming that Checkstyle
is in the library search path, then you may use antlib feature
of Ant (see <a
href="http://ant.apache.org/manual/CoreTypes/antlib.html"
>http://ant.apache.org/manual/CoreTypes/antlib.html</a>
for more details). For example:
</p>
<source>
&lt;project name="foo" ...
xmlns:cs="antlib:com.puppycrawl.tools.checkstyle"&gt;
...
&lt;cs:checkstyle&gt;
...
&lt;/cs:checkstyle&gt;
...
&lt;/project&gt;
</source>
</section>
<section name="Parameters">

View File

@ -84,6 +84,9 @@
Applied patch 1340300 from David Dodini to update bcel
checks to be compilable with current Checkstyle's API.
</li>
<li>
Added antlib.xml to support new cool feature of Ant.
</li>
</ul>
</section>

View File

@ -13,7 +13,7 @@
lines="176"/>
<suppress checks="MagicNumber"
files="JavadocMethodCheck.java"
lines="751,783,808"/>
lines="748,780,805"/>
<suppress checks="ImportControl"
files="NewlineAtEndOfFileCheck.java"
lines="26"/>