Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 36097 invoked from network); 2 Nov 2005 08:49:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Nov 2005 08:49:31 -0000 Received: (qmail 29477 invoked by uid 500); 2 Nov 2005 08:49:24 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 29360 invoked by uid 500); 2 Nov 2005 08:49:23 -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 29302 invoked by uid 99); 2 Nov 2005 08:49:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2005 00:49:22 -0800 X-ASF-Spam-Status: No, hits=2.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [194.51.219.132] (HELO relais0.steria.fr) (194.51.219.132) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 02 Nov 2005 00:49:17 -0800 Received: from relais3v5.velizy.fr.sterianet ([10.1.0.27]) by relais0.steria.fr (SMSSMTP 4.1.9.35) with SMTP id M2005110209482824183 for ; Wed, 02 Nov 2005 09:48:28 +0100 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; Wed, 02 Nov 2005 09:54:19 +0100 (Paris, Madrid) Received: from steria.com ([10.2.40.240]) by mailvel.velizy.fr.sterianet (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id for user@ant.apache.org; Wed, 02 Nov 2005 09:48:21 +0100 (Paris, Madrid) Date: Wed, 02 Nov 2005 09:42:53 +0100 From: Nicolas Vervelle Subject: Re: Substring In-reply-to: <317F47DB6430B0F8DD7B587E@sw_ntserver2> To: Ant Users List Message-id: <43687C0D.70008@steria.com> MIME-version: 1.0 Content-type: multipart/alternative; boundary="Boundary_(ID_ki4swyNzwVbAwusb7ZGRqA)" X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) References: <317F47DB6430B0F8DD7B587E@sw_ntserver2> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --Boundary_(ID_ki4swyNzwVbAwusb7ZGRqA) Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT You can try (or something like that). I think it's part of ant-contrib. Remo Liechti wrote: >Hi Gil >Is there no easy way to do it? :/ It's a bit overhead to write files for >this, isn't it ;) >If there is no other possibility I'll do it this way... > >Thanks anyway, >Remo > > > > > >>-----Original Message----- >>From: Rebhan, Gilbert [mailto:Gilbert.Rebhan@huk-coburg.de] >>Sent: Mittwoch, 2. November 2005 09:31 >>To: Ant Users List >>Subject: RE: Substring >> >> >>Hi, >> >>echo ${Prop1}${Prop2} to yourfile.txt >>then use a filterchain when loading >>the contents of that file in a new property = >> >> >> >> >> >> >> >> >> >>${bla} >> >>gives you >>> /my/folder/my other folder/ >> >>Gilbert >> >> >>-----Original Message----- >>From: Remo Liechti [mailto:remo.liechti@swisslog.com] >>Sent: Wednesday, November 02, 2005 8:46 AM >>To: Ant Users List >>Subject: Substring >> >>Good Morning >>Is it possible to to some string operations on a property? >> >>Example: >>Prop1: "/my/folder/" >>Prop2: "/my other folder/" >> >>Now I log: >>File moved to: ${Prop1}${Prop2} >> >>This logs: >>"/my/folder//my other folder/" >> >>The double slash is not nice... But I need all the slashes in >>Prop1 and Prop2... So I need to do a substring action on one >>of the properties. >>I took a look at the documentation of ANT but did not found >>some string operations or stuff like this. I think there is >>such things, may be I looked at the wrong place. If so, >>please tell me where I have to look next time ;) >> >>Thank you >> >>Remo >> >>____________________________________________________________ >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For >>additional commands, e-mail: user-help@ant.apache.org >> >> >>____________________________________________________________ >>This message has been checked for all known viruses by Messagelabs. >> >> >> > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >For additional commands, e-mail: user-help@ant.apache.org > > > > > --Boundary_(ID_ki4swyNzwVbAwusb7ZGRqA)--