GNU bug report logs -
#9088
Better java support with new JARS primary
Previous Next
Full log
View this message in rfc822 format
On Fri, Jul 15, 2011 at 9:13 PM, Jack Kelly <jack <at> jackkelly.name> wrote:
> On Sat, Jul 16, 2011 at 9:55 AM, tsuna <tsunanet <at> gmail.com> wrote:
>> On Fri, Jul 15, 2011 at 1:58 AM, Stefano Lattarini
>> <stefano.lattarini <at> gmail.com> wrote:
>>> As my java foo is pretty weak, I'm not sure how to handle jar manifests,
>>> jar entry points, or other jar/javac subtleties and advanced features.
>>> Suggestions welcome.
>>
>> You can create the manifest manually fairly easily. Here's an example
>> in the project I'm in the process of autotoolizing:
>> https://github.com/stumbleupon/opentsdb/blob/6059488f38fc8a51d426d6972eee6fdd1033d851/Makefile#L207
>
> Perhaps there should be support for a foo_jar_JARADD, that by analogy
> to _LDADD, that specifies additional files to be included in the jar?
> Then the manifest is just another file. My Java-foo is also weak, so
> I'm not 100% sure if that would actually work.
You need to know specifically which file is to be used as the manifest
file, because you need to pass it to "jar". The dependent jar files
need to be separated because you need to use them to assemble a
classpath (e.g. "-cp dep1.jar:dep2.jar:some/directory").
--
Benoit "tsuna" Sigoure
Software Engineer @ www.StumbleUpon.com
This bug report was last modified 11 years and 174 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.