On Sat, 12 Feb 2011 11:21:39 -0800, markspace<nospam@nowhere.com>
wrote, quoted or indirectly quoted someone who said :
I find it hard to believe there's no way to include resources in a Jar
task. I'll look at the docs later (it's Saturday), but my guess is the
task just needs to be configured correctly.
Manually including them is easy. The problem is remembering to add the
lines to your ant script, or people using library code you write
remembering to add them.
To include the resources from some dependent package you need
something like this is your ant script:
<resource>
<!-- include all the *.ser index files -->
<fileset dir="${basedir}">
<include name="com/mindprod/qf/*.ser" />
</fileset>
</resource>
I don't need anything similar to include dependent CLASSES from the qf
package.
The other thing that is neat about genjar class inclusion, is it won't
include EVERYTHING, just the classes in a package you actually use
(or more precisely reference). It would be nice if Genjar could be
were similarly clever about resources.
That seems like a rather futile exercise to me.
They will get into so many other problems.