Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 40458 invoked from network); 8 Jun 2000 12:50:05 -0000 Received: from smtp01ffm.de.uu.net (192.76.144.150) by locus.apache.org with SMTP; 8 Jun 2000 12:50:05 -0000 Received: from sbodewig.bost.de ([195.127.75.69]) by smtp01ffm.de.uu.net (5.5.5/5.5.5) with ESMTP id OAA18261 for ; Thu, 8 Jun 2000 14:50:00 +0200 (MET DST) Received: (from bodewig@localhost) by sbodewig.bost.de (8.9.3/8.9.3) id OAA07313; Thu, 8 Jun 2000 14:49:59 +0200 X-Authentication-Warning: sbodewig.bost.de: bodewig set sender to bodewig@bost.de using -f To: ant-dev@jakarta.apache.org Subject: Re: Path.java update References: <393EA22B.CFD7BCDA@haas-wyss.ch> <393F8289.D01993C@softwired-inc.com> <393F8EE0.91F523F2@softwired-inc.com> From: Stefan Bodewig Date: 08 Jun 2000 14:49:59 +0200 In-Reply-To: Thomas Haas's message of "Thu, 08 Jun 2000 14:17:37 +0200" Message-ID: Lines: 18 User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Canyonlands) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N >>>>> "TH" == Thomas Haas writes: TH> However I may be pleased by doing it the other way round: let TH> translatePath first split the path into single elements and then TH> call translateFile for each element. What do you think? Of course, this is the cleanest solution. But this would mean you'd need to scan the full path twice, first to split the path (and do the DOS check to detect ':') and then once again. I feel the primary intention of Project.translatePath was to avoid this - else you could do the / \ replacement with two String.replace calls instead of the loop. Personally I don't think you would notice the difference - how many Path's do we need to split? Stefan