Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 49313 invoked from network); 8 Aug 2006 01:52:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Aug 2006 01:52:36 -0000 Received: (qmail 89530 invoked by uid 500); 8 Aug 2006 01:52:33 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 89433 invoked by uid 500); 8 Aug 2006 01:52:33 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 89422 invoked by uid 99); 8 Aug 2006 01:52:32 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Aug 2006 18:52:32 -0700 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=PLING_QUERY,SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of dfs@savarese.org designates 204.91.10.133 as permitted sender) Received: from [204.91.10.133] (HELO savarese.org) (204.91.10.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Aug 2006 18:52:32 -0700 Received: from mail.savarese.org (mail2.savarese.org [192.168.2.5]) by savarese.org (8.13.6/8.13.6) with ESMTP id k781q2Q3008069 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 7 Aug 2006 21:52:03 -0400 Received: from gandalf.savarese.org (gandalf.savarese.org [192.168.1.16]) by mail.savarese.org (8.13.6/8.13.6) with ESMTP id k781qAAd001243 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 7 Aug 2006 21:52:10 -0400 Received: from savarese.org by gandalf.savarese.org (8.13.6/8.13.6/Submit) with ESMTP id k781q9Wf020631; Mon, 7 Aug 2006 21:52:10 -0400 Message-Id: <200608080152.k781q9Wf020631@gandalf.savarese.org> To: commons-dev@jakarta.apache.org cc: Anil Philip X-Archive: no Subject: Re: [commons-net ftp] help! can I avoid oro.jar? (MalformedPatternException) In-reply-to: Your message of "Mon, 07 Aug 2006 12:24:54 PDT." <20060807192454.70299.qmail@web52714.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 07 Aug 2006 21:52:09 -0400 From: "Daniel F. Savarese" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N In message <20060807192454.70299.qmail@web52714.mail.yahoo.com>, Anil Philip wr ites: >I googled and read that the oro.jar is missing. >However my application is sensitive to download times >and I dont wish to add the oro.jar if possible - I am >not using regex here. >Is there any way out? The oro jar 77k in size (a good deal smaller than all of the JavaScript support libraries that get loaded in Web pages these days) Usually, if you're sensitive to the size of a jar file, you repackage your application to use only the essential classes. There's nothing preventing you from removing unused classes from the commons-net (based on your commons-user email) and oro jars. However, the oro classes are used by the FTP listing parser. All that said, if you do a checkout of the trunk of the oro svn repository and compile the source with 'ant jar' you will find a number of jars, two of which will be jakarta-oro-core-2.1-dev-1.jar and jakarta-oro-perl5-2.1-dev-1.jar. I do not believe commons-net uses anything outside of that. The first jar is 12k in size and the second is 28k. You can make the second one smaller by removing the org/apache/oro/text/perl classes and the first one smaller by removing the classes with 'Engine' in their names. Based on your commons-net email, you appear to be using only FTP. I'd suggest removing the bsd, nntp, ntp, pop3, smtp, and tftp packages from that jar and creating a new jar including all of your app dependencies to avoid multiple downloads since you're concerned about download times. However, since you mentioned in your commons-user email that you're using Java WebStart, downloads are a one time cost because of the application caching. Also, with the caching mechanism, it's better to use separate jars so that individual jars can be updated without requiring the entire application to be redownloaded. daniel -#-#-#-#-| Sleep and The Traveller |-#-#-#-#-#-#-#- http://www.savarese.org/ In distant lands, I hear the call of my home. # s a v a r e s e Yet my work is not done. My journey's just begun.- software research -- http://www.sleepandthetraveller.com/ # http://www.savarese.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org