I have written a custom check and put it in a jar. When I run the check in NetBeans with the Checkstyle Beans plugin it all works well, but when I run it with Ant I get the following error:
Could not load definitions from resource checkstyletask.properties. It could not be found.
C:\MyData\LocalSubversionWorkingCopy\bla\trunk\projects\BLA\autobuild.xml:43: Problem: failed to create task or type checkstyle
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any / declarations have taken place.
But the file checkstyletask.properties is available in the checkstyle-all-4.4.jar.
What am I doing wrong? Please help me!
Snippet from build.xml: