Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 26584 invoked from network); 26 Jan 2003 07:09:04 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 26 Jan 2003 07:09:04 -0000 Received: (qmail 21433 invoked by uid 97); 26 Jan 2003 07:10:37 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 21417 invoked by uid 97); 26 Jan 2003 07:10:36 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 21403 invoked by uid 98); 26 Jan 2003 07:10:35 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <3E338992.7080500@chalko.com> Date: Sat, 25 Jan 2003 23:09:06 -0800 From: Nick Chalko User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2b) Gecko/20021016 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Developers List Subject: Re: DO NOT REPLY [Bug 16428] New: - Avoid requirement of putting jars in ant/lib References: <20030126035039.3687.qmail@nagoya.betaversion.org> In-Reply-To: <20030126035039.3687.qmail@nagoya.betaversion.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Krysalis Centipdede takes care of this. Centpede groups optional tasks with required jars in a package called a cent Cents are automatically downloaded as needed. Take a look at http://krysalis.org/centipede bugzilla@apache.org wrote: >DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG >RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT >. >ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND >INSERTED IN THE BUG DATABASE. > >http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16428 > >Avoid requirement of putting jars in ant/lib > > Summary: Avoid requirement of putting jars in ant/lib > Product: Ant > Version: 1.5.1 > Platform: All > OS/Version: All > Status: NEW > Severity: Enhancement > Priority: Other > Component: Other > AssignedTo: ant-dev@jakarta.apache.org > ReportedBy: per@velschow.com > > >Now that Ant has chosen to define a lot of optional tasks via the optional.jar >in the ant/lib directory, we are forced to put the required 3rd party libraries >in that directory. To me that is work only half done. > >I do understand that the Ant distribution cannot include all the required >libraries (due to license and maintenance issues). But this requirement is the >only thing that prevents us from checking all the needed libraries for a >project into a source control system and simply asking users to checkout and >type ant. > >Ok, that was the problem. Here is how I think it could be solved. There are a >few ways as I see it. > >Option 1) AFAIK, Ant implements its own ClassLoader. Wouldn't it be possible to >somehow pass the location of required libraries to that class loader at startup >time? > >Option 2) Extend the Ant wrapper scripts with a classpath argument that will be >appended to the the classpath before executing Ant. > >Option 3) Extend the Ant wrapper scripts so that it will include a .antrc from >the directory of the build file. > >The first option is in my view the right way of doing it. The second and third >are a work-arounds that for most cases would probablt be good enough. > >I am aware that you can have the wrapper scripts read a .antrc from the user's >home directory. But this is not good enough because different projects have >different library requirements. > >-- >To unsubscribe, e-mail: >For additional commands, e-mail: > > -- To unsubscribe, e-mail: For additional commands, e-mail: