diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/antlib.xml b/src/checkstyle/com/puppycrawl/tools/checkstyle/antlib.xml new file mode 100644 index 000000000..4fb418383 --- /dev/null +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/antlib.xml @@ -0,0 +1,6 @@ + + + + + diff --git a/src/xdocs/anttask.xml b/src/xdocs/anttask.xml index 7d140b65f..027a70a00 100755 --- a/src/xdocs/anttask.xml +++ b/src/xdocs/anttask.xml @@ -79,6 +79,27 @@ <taskdef resource="checkstyletask.properties"/> + +

+ 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 http://ant.apache.org/manual/CoreTypes/antlib.html + for more details). For example: +

+ + +<project name="foo" ... + xmlns:cs="antlib:com.puppycrawl.tools.checkstyle"> +... + <cs:checkstyle> + ... + </cs:checkstyle> +... +</project> + +
diff --git a/src/xdocs/releasenotes.xml b/src/xdocs/releasenotes.xml index 84b4f4fce..b192cae1b 100755 --- a/src/xdocs/releasenotes.xml +++ b/src/xdocs/releasenotes.xml @@ -84,6 +84,9 @@ Applied patch 1340300 from David Dodini to update bcel checks to be compilable with current Checkstyle's API. +
  • + Added antlib.xml to support new cool feature of Ant. +
  • diff --git a/suppressions.xml b/suppressions.xml index d6bc0de2a..43338e3ac 100755 --- a/suppressions.xml +++ b/suppressions.xml @@ -13,7 +13,7 @@ lines="176"/> + lines="748,780,805"/>