Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 8347 invoked from network); 9 Aug 2007 18:04:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Aug 2007 18:04:56 -0000 Received: (qmail 83636 invoked by uid 500); 9 Aug 2007 18:04:50 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 83606 invoked by uid 500); 9 Aug 2007 18:04:50 -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 83595 invoked by uid 99); 9 Aug 2007 18:04:50 -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 11:04:50 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of brokenconnection@gmail.com designates 209.85.198.189 as permitted sender) Received: from [209.85.198.189] (HELO rv-out-0910.google.com) (209.85.198.189) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Aug 2007 18:04:46 +0000 Received: by rv-out-0910.google.com with SMTP id k15so434304rvb for ; Thu, 09 Aug 2007 11:04:25 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=eg8SGwGvXkBBX24J6UBNEA08jRRv7qmIGwI4fF6PK+Jq+zCPrusT3epYZKBGs7+15DlWOvvw0WOuvZI1BOjZx9/G9ntvmjpOt4Ia6XQCYrfwwugKNUky3cx4Zz+T8+AUVlzVZXNvAzI3uAUGgW9nFBqAN1pAAA5qiZhXDq70lYI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=FCn+kiWSFTGebtgQOF+BHRdJGeyrIoZH9CXZg8C8JUQsszwNFwO7pWfytySoYRSws7LNmWwiSBVaYNQZMXFujSuY5skuSGs4gVrrjPIit3S/qbgFo1CglxFE5+Ct3qlMpOoR+1FwQYTXXoZ6CjQzbmKSS39RO067rrv+N044DC4= Received: by 10.141.180.5 with SMTP id h5mr1057235rvp.1186682665452; Thu, 09 Aug 2007 11:04:25 -0700 (PDT) Received: by 10.141.4.6 with HTTP; Thu, 9 Aug 2007 11:04:25 -0700 (PDT) Message-ID: <2ae0eaa40708091104j4a769f48g80ada1b55fe20937@mail.gmail.com> Date: Thu, 9 Aug 2007 14:04:25 -0400 From: "broken connection" To: "Ant Users List" Subject: Re: How to convert back slashes to forward slashes In-Reply-To: <55879AC51120084A8DC1A3135BA1FA470142B536@webemail.pro-unlimited.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2853_20577883.1186682665430" References: <2ae0eaa40708091040k22bb2d8s8ebb0bdf5d269538@mail.gmail.com> <55879AC51120084A8DC1A3135BA1FA470142B536@webemail.pro-unlimited.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_2853_20577883.1186682665430 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline perl ?? I don' t have perl installed....so how would the exec call that perl function??? On 8/9/07, Chun Ji wrote: > > > If this works for you, maybe you can add an "exec" in your ant xml file. > > " perl -pi -e 's/\\/\\\\/g' " > > > -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=C:\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 > > ------=_Part_2853_20577883.1186682665430--