[Pkg-crosswire-devel] JSword: help with checkstyle
DM Smith
dmsmith555 at yahoo.com
Thu Aug 26 03:05:33 BST 2010
On Aug 25, 2010, at 8:19 PM, Dmitrijs Ledkovs wrote:
> ----------------------
> checkstyle:
> [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
> ANT_HOME/lib
> [mkdir] Created dir:
> /home/tdlk/src/jsword/trunk/jsword-web/target/webapp/checkstyle
> [copy] Copying 1 file to
> /home/tdlk/src/jsword/trunk/jsword-web/target/webapp/checkstyle
>
> BUILD FAILED
> /home/tdlk/src/jsword/trunk/jsword-web/build.xml:89: The following
> error occurred while executing this line:
> /home/tdlk/src/jsword/trunk/jsword-support/tools/checkstyle/build.xml:25:
> 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:
ant checkstyle.antlibs
In either case, jsword-support has the correct checkstyle jar and JSword's ant build won't look elsewhere for it.
In Him,
DM
More information about the Pkg-crosswire-devel
mailing list