Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 1267 invoked from network); 9 Aug 2007 17:54:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Aug 2007 17:54:25 -0000 Received: (qmail 62418 invoked by uid 500); 9 Aug 2007 17:54:20 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 62377 invoked by uid 500); 9 Aug 2007 17:54:19 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 62366 invoked by uid 99); 9 Aug 2007 17:54:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Aug 2007 10:54:19 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [67.104.17.130] (HELO exchg01.pro-unlimited.com) (67.104.17.130) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Aug 2007 17:54:15 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: How to convert back slashes to forward slashes Date: Thu, 9 Aug 2007 10:53:54 -0700 Message-ID: <55879AC51120084A8DC1A3135BA1FA470142B536@webemail.pro-unlimited.com> In-Reply-To: <2ae0eaa40708091040k22bb2d8s8ebb0bdf5d269538@mail.gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to convert back slashes to forward slashes Thread-Index: AcfarGVEnpyZgz4dQxake0xs3I8ZsAAAHT8g From: "Chun Ji" To: "Ant Users List" X-Virus-Checked: Checked by ClamAV on apache.org If this works for you, maybe you can add an "exec" in your ant xml file. = " perl -pi -e 's/\\/\\\\/g' "=20 -c -----Original Message----- From: broken connection [mailto:brokenconnection@gmail.com] Sent: Thursday, August 09, 2007 10:40 AM To: Ant Users List Subject: How to convert back slashes to forward slashes Importance: Low Hi Friends, I take a directory path input from the end-user and store it in a property,for example if its windows,it stores it as: log4j.location=3DC:\tomcat\logs And that messes up everything.Because \t is interpreted as tab. So, how = can i change the backward slashes(windows convention) to forward = slashes(unix convention) in the property before my build file is executed???? Or, how to escape them eg "\" to "\\" I would appreciate your help. Thanks Mick --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org