Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 14263 invoked from network); 11 Feb 2003 09:36:14 -0000 Received: from unknown (HELO pegasus.axiomsystems.com) (194.42.245.4) by daedalus.apache.org with SMTP; 11 Feb 2003 09:36:14 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Missing & misleading documentation, help needed on advanced Jar functionality Date: Tue, 11 Feb 2003 09:36:25 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Missing & misleading documentation, help needed on advanced Jar functionality thread-index: AcLRsECsikLfuTrRSDm5/yhuvhooeQAAIXmg From: "Keith Hatton" To: "Ant Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I wouldn't try to make your application into one single jar file. IMHO, it's better to have *your* class files in a jar file whose = manifest contains "Class-Path" entries pointing to the other jars your = application requires. Then there's no confusion about who supplies which = class file, versioning, etc... Keith -----Original Message----- From: webhiker%tiscali.fr [mailto:webhiker@tiscali.fr] Sent: 11 February 2003 09:34 To: ant-user@jakarta.apache.org Subject: Missing & misleading documentation, help needed on advanced Jar functionality The problem : I want to combine all the jars required by my application into a single, = executable jar file. Ant is good for this. However, the JavaBeans Activation Framework jar needs certain manifest=20 info, else it generates an error : Exception in thread "main" java.lang.SecurityException: no manifiest=20 section for signature file entry=20 javax/activation/DataContentHandlerFactory.class sun.security.util.SignatureFileVerifier.verifySection(SignatureFileVerifi= er.java:260) The solution: Ant docs for jar task indicate it's possible to include manifest=20 information from a jar file, and combine it with any other info you=20 include. However, no example is given. It also states falsely, that=20 "This element is identical to the manifest task". So I try : Ant complains "org.apache.tools.ant.taskdefs.Manifest doesn't support=20 the "file" attribute." So it's not identical. But I cannot find any other info which allows me to specify how to tell=20 the jar task where to copy the manifest info from. It may be more complicated, since look at the contents of activation.jar = manifest: META-INF/MANIFEST.MF META-INF/SUN_MICR.SF META-INF/SUN_MICR.RSA META-INF/ META-INF/mailcap.default META-INF/mimetypes.default Anyone have an idea? Thanks WH --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org