| Unrolling included jars in a new jar file? | Unrolling included jars in a new jar file? 2003-03-28 - By Keith Hatton
Hi Sean,
When I said "describe the dependencies" I guess what I meant was "write the <include> tags manually". I know that sounds like a pain, but that way you know ahead of time exactly what the jar file should contain, rather than just "see what happens" approach that you get with JBuilder. Our experience here is that JBuilder is not very good at determining the real dependencies - it seems to pick up lots of unnecessary files, plus of course it misses anything that's reflection-based (where there is no dependency in the .class file), such as JCE (security) etc.
Or, as you say, you can use the Class-Path entry in the manifest to point to another JAR - you can specify a manifest file in the <jar> task or use the nested <manifest> element. Often that's a good approach too, particularly when you want to include something whose license is along the lines of "you can distribute this stuff, but you must distribute it intact, no fiddling ..." - e .g. JAF, JavaMail, ...
Anyhow, it sounds like you are away on this task and someone else has given you a link to the <genjar> task too. Good luck!
Keith
-----Original Message----- From: Sean Leblanc [mailto:SeanL@(protected)] Sent: 27 March 2003 18:43 To: 'Ant Users List' Subject: RE: Unrolling included jars in a new jar file?
Thanks, somehow I overlooked unjar. I think combining with jar, I can do what I want.
I don't see genjar in the optional tasks in the manual. I guess I'm not looking in the right spot.
When you say "it's better to describe the dependencies..." what does this mean? Is this done using manifest(s)?
TIA, Sean
-----Original Message----- From: Keith Hatton [mailto:khatton@(protected)] Sent: Thursday, March 27, 2003 10:10 AM To: Ant Users List Subject: RE: Unrolling included jars in a new jar file?
Yes, you need the <unjar> and <jar> tasks. Also look at the <genjar> optional task.
But, one of the great things about Ant (IMHO) is that it doesn't duplicate the behaviour of the jar builder in JBuilder! Our experience is that JBuilder builds bloatware jars, it's much better to describe the dependencies properly in the build file.
-----Original Message----- From: Sean Leblanc [mailto:SeanL@(protected)] Sent: 27 March 2003 17:03 To: 'user@(protected)' Subject: Unrolling included jars in a new jar file?
Hi,
I'm trying to duplicate the behavior of the jar builder in Jbuilder. For included jars, it un-jars the contents of included jars and zips, and puts the contents in the target jar, along with your own classes. Is there a way to do this with Ant?
Thanks, Sean This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender.
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected) This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender.
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
|
|
 |