Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 97134 invoked from network); 11 Dec 2002 16:30:13 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 11 Dec 2002 16:30:13 -0000 Received: (qmail 4630 invoked by uid 97); 11 Dec 2002 16:31:07 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 4614 invoked by uid 97); 11 Dec 2002 16:31:07 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 4591 invoked by uid 98); 11 Dec 2002 16:31:06 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: From: Dominique Devienne To: "'Ant Users List'" Subject: RE: Efficient method to build JARs Date: Wed, 11 Dec 2002 10:29:54 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Then unjar all your dependent JARs somewhere, and make work for you, or file a bug report in BugZilla if you think you've found a bug. --DD PS: Off topic, but is it OK to include part of projects classes in your own JARs, when these other projects are Open Source released under various licenses? Does the Apache or Jakarta license prevent that? -----Original Message----- From: Aaron Kelley [mailto:akelley@ecsplus.com] Sent: Wednesday, December 11, 2002 10:24 AM To: 'Ant Users List' Subject: RE: Efficient method to build JARs I don't need any tool to guess which classes I am loading dynamically. I want to define a fileset of these classes (so include all the classes in folderX as my root classes) and then have the tool load all of their dependencies (very similar to what ClassFileSet does, but I need it to actually work, and I need to do something about all my required classes in JAR files). We are using quite a few required libraries and our JAR file will be downloaded to clients, so size does matter. -----Original Message----- From: Dominique Devienne [mailto:DDevienne@lgc.com] Sent: Wednesday, December 11, 2002 9:15 AM To: 'Ant Users List' Subject: RE: Efficient method to build JARs I fail to see how any tool could *guess* which classes you'll dynamically load from your code, except if you have a very controlled way of specifying the list of such classes (their names I guess). Packaging more classes than needed is better than not finding them at runtime once deployed. Or I'm missing something altogether. --DD -----Original Message----- From: Aaron Kelley [mailto:akelley@ecsplus.com] Sent: Wednesday, December 11, 2002 10:10 AM To: ant-user@jakarta.apache.org Subject: Efficient method to build JARs Is there an efficient way to build JARs (so it loads all the dependencies and not every class file)? I see that there is a ClassFileSet, but it cannot pull required classes from JAR files. Also, I could not really get it to work and there seems to be a lack of documentation for it. Secondly, I looked at GenJar, but this package requires you to actually list individual classes that form the root of your dependencies. My problem with this package is that I would have to list all of my classes since we are dynamically loading many of classes in out projects. This is not an option since I will be using it for automated building of large and changing projects. I would love to hear any other options I may have. Thanks, Aaron -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: