Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 64299 invoked from network); 9 Oct 2006 00:32:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Oct 2006 00:32:03 -0000 Received: (qmail 10853 invoked by uid 500); 9 Oct 2006 00:32:02 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 10388 invoked by uid 500); 9 Oct 2006 00:32:01 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 10376 invoked by uid 99); 9 Oct 2006 00:32:01 -0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=DATE_IN_PAST_06_12,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO [127.0.0.1]) (209.237.227.194) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Oct 2006 17:32:01 -0700 Message-ID: <452936CA.2090605@apache.org> Date: Sun, 08 Oct 2006 19:35:06 +0200 From: Carsten Ziegeler User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Deploying without copying References: <20061006090632.912FE1A981A@eris.apache.org> <4526353A.1090300@mobilebox.pl> <4526376C.4090201@mobilebox.pl> <4526467E.6060309@apache.org> <45265497.402@mobilebox.pl> <452660E1.9060303@apache.org> <452695D6.7060908@apache.org> <45275CD8.6090008@apache.org> <452762C3.5050102@apache.org> <4527691C.2020107@apache.org> <45296461.5030909@nada.kth.se> In-Reply-To: <45296461.5030909@nada.kth.se> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Daniel Fagerstrom wrote: >> a) search for all relevant jar files containing a COB-INF directory and >> all the other directories we usually extract during deployment. This can >> be done using the class loader which returns urls for each jar file. > > Which method in the classloader does that? Otherwise we know what > directories to search for jars anyway. > Its the getResources(String) method we could use. It returns urls to the jars. This avoids scanning all jars by hand and should also work if people are not putting their jars into WEB-INF/lib but for example commons/lib of the servlet container. Carsten -- Carsten Ziegeler - Open Source Group, S&N AG http://www.s-und-n.de http://www.osoco.org/weblogs/rael/