Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 98227 invoked by uid 500); 12 Apr 2001 07:25:54 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 98156 invoked from network); 12 Apr 2001 07:25:49 -0000 Reply-To: From: "Marc Portier" To: Subject: RE: adding class-path to manifest Date: Thu, 12 Apr 2001 09:21:09 +0200 Message-ID: <703B15C33AA4D411A69000508B09061D06A85F@BYRON> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) Importance: Normal In-Reply-To: <00b801c0c2db$00200a20$0301a8c0@trinity> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N taking this step by step: 1. you create your build file as suggested by Isaac 2. you manually edit your own Manifest file, but you don't put it in the basedir somewhere _manually_ means you edit yourself the file to hold the line: Class-Path: struts.jar 3. instead you put it and call it as denoted in the manifest attribute of the jar task said all that I do understand what you're getting at, I think... the point is that you probably already have some ${cp} property you're using in some and you (well, we all, I guess) hate the idea that you manually have to sync additional needed jars in both the build.xml and the infamous yourManuallyEdited.mf (by the way: the same holds for the Main-Class manifest entry that doubles to the java classname="Main-Class" attribute, this for the java -jar addicts) would be interesting to understand how the jar task now generates it's own Manifest.mf... and have a look into how that could be extended to maybe slide in a line or 2? (maybe it's not even the jar task doing it but the underlaying JDK utility?)... that, or a manifest-building task preceeding the jar task? -marc= > -----Original Message----- > From: G.L. Grobe [mailto:gary@grobe.org] > Sent: donderdag 12 april 2001 0:59 > To: ant-user@jakarta.apache.org > Subject: Re: adding class-path to manifest > > > So if NameofJartoCreate.jar is the jar i'm creating and it > depends on an > external jar called struts.jar, where is the file struts.jar > or it's path to > struts.jar being added? All I can see from here is that I'd know what > manifest to use. > > jarfile="NameofJartoCreate.jar" > basedir="wheretojarfrom" > manifest="nameofManifestfile" > /> > > Thnxs for replying > > ----- Original Message ----- > From: "Isaac Sparrow (Staff Engineer)" > To: > Sent: Wednesday, April 11, 2001 5:53 PM > Subject: Re: adding class-path to manifest > > > > "G.L. Grobe" wrote: > > > > > > Reposting for some help here. > > > > > > How do you tell Ant to add an external jar file to the > MANIFEST.MF that > > > my-ejb.jar file depends on? If I manually add the > MANIFEST.MF, it get's > > > ignored and Ant creates an empty one. > > > > > > I need this in the file (I think) as my ejb's are not finding the > correct > > > paths to this jar. > > > > > > Class-Path: ../struts.jar > > > > > > Any help much appreciated. > > > > I have ant add a manifest I have created like this: > > > > > jarfile="NameofJartoCreate.jar" > > basedir="wheretojarfrom" > > manifest="nameofManifestfile" > > /> > > > > > > Hope this helps! > > > > -- > > --Isaac Sparrow > > -------------------------- > > Staff Engineer > > VisiComp, Inc. > > > > http://www.visicomp.com > > >