[Pkg-crosswire-devel] JSword: help with checkstyle
dmsmith555 at yahoo.com
Thu Aug 26 03:05:33 BST 2010
On Aug 25, 2010, at 8:19 PM, Dmitrijs Ledkovs wrote:
> [echo] CheckStyle may fail if checkstyle-all-5.0.jar is not visible to Ant.
> [echo] To make it visible you need to do one of two things depending
> [echo] on whether you are running ant in Eclipse or not.
> [echo] In Eclipse, add checkstyle-all-5.0.jar to Preferences ->
> Ant -> Runtime -> Global Entries
> [echo] Otherwise, run the checkstyle.antlibs task to copy jars to
> [mkdir] Created dir:
> [copy] Copying 1 file to
> BUILD FAILED
> /home/tdlk/src/jsword/trunk/jsword-web/build.xml:89: The following
> error occurred while executing this line:
> 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 <presetdef>/<macrodef> declarations have taken place.
> What's going on here? I did install checkstyle and I have
> /usr/share/java/checkstyle.jar on my system.
If you are in Eclipse, it uses it's own copy of ant. The directions above give how to make it visible to ant.
If you are running ant some other way then just run:
In either case, jsword-support has the correct checkstyle jar and JSword's ant build won't look elsewhere for it.
More information about the Pkg-crosswire-devel