Fix UseJava not copying resource files

Fix for add_jar() command not copying the resource files before
compiling the jar file.

Based on the patch created by "mefoster" here:
http://public.kitware.com/Bug/view.php?id=13360