From user-return-50006-apmail-ant-user-archive=ant.apache.org@ant.apache.org Tue May 03 17:43:36 2005 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 34839 invoked from network); 3 May 2005 17:43:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 May 2005 17:43:35 -0000 Received: (qmail 23257 invoked by uid 500); 3 May 2005 17:01:36 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 23228 invoked by uid 500); 3 May 2005 17:01:35 -0000 Mailing-List: contact user-help@ant.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 user@ant.apache.org Received: (qmail 23214 invoked by uid 99); 3 May 2005 17:01:35 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from relais0.steria.fr (HELO relais0.steria.fr) (194.51.219.132) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 03 May 2005 10:01:10 -0700 Received: from relais3v5.velizy.fr.sterianet ([10.1.0.27]) by relais0.steria.fr (SMSSMTP 4.0.0.59) with SMTP id M2005050318590117457 for ; Tue, 03 May 2005 18:59:01 +0200 Received: from mailvel.velizy.fr.sterianet ([10.2.25.115]) by relais3v5.velizy.fr.sterianet (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) with ESMTP id for user@ant.apache.org; Tue, 03 May 2005 19:02:50 +0200 Received: from steria.com ([127.0.0.1]) by mailvel.velizy.fr.sterianet (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id for user@ant.apache.org; Tue, 03 May 2005 18:58:54 +0200 Received: from [194.51.219.137] (Forwarded-For: 62.34.153.49, [194.158.98.37]) by mailvel.velizy.fr.sterianet (mshttpd); Tue, 03 May 2005 18:58:54 +0200 Date: Tue, 03 May 2005 18:58:54 +0200 From: Nicolas Vervelle Subject: Convert a path To: user@ant.apache.org Message-id: <389b537f2b.37f2b389b5@steria.com> MIME-version: 1.0 X-Mailer: iPlanet Messenger Express 5.2 Patch 2 (built Jul 14 2004) Content-type: text/plain; charset=us-ascii Content-language: fr Content-transfer-encoding: 7BIT Content-disposition: inline X-Accept-Language: fr Priority: normal X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I didn't have much success with my last question :( I will try with only a small problem then : How to expand a path (${build.dir}) to match what I get with and the reverse modification? For example : E:\Java\Jmol-web -> E\:\\Java\\Jmol-web -> E:\Java\Jmol- web It must be portable (Windows, Linux, Mac OS, ...) I could probably do it with regular expressions, but then I will have to check every "escapable" character They are probably not limited to ':' and '\' TIA, Nicolas --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org