From user-return-36647-apmail-ant-user-archive=ant.apache.org@ant.apache.org Wed Sep 03 18:45:35 2003 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 47359 invoked from network); 3 Sep 2003 18:45:35 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 3 Sep 2003 18:45:35 -0000 Received: (qmail 35297 invoked by uid 500); 3 Sep 2003 18:32:01 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 35236 invoked by uid 500); 3 Sep 2003 18:32:00 -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 35130 invoked from network); 3 Sep 2003 18:31:58 -0000 Received: from unknown (HELO relay.t-online-com.de) (62.156.147.74) by daedalus.apache.org with SMTP; 3 Sep 2003 18:31:58 -0000 Received: from DJ0X820J (p5080ea0b.dip0.t-ipconnect.de [80.128.234.11]) by relay.t-online-com.de (SMTPSVC(1.0.0.1)) with ESMTP id D4D0515003F for ; Wed, 3 Sep 2003 20:28:32 +0200 (CEST) Message-ID: <017d01c37249$e3faf640$020200c0@DJ0X820J> From: "Antoine Levy-Lambert" To: "Ant Users List" References: <8765557836794E4EADF7F31290F4C39F02DF305F@ns.suz.com> Subject: Re: Substrings Date: Wed, 3 Sep 2003 20:33:37 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Vikas, I have read postings mentioning a propertyregexp task in ant-contrib or antelope. Cheers, Antoine ----- Original Message ----- From: "Vikas Phonsa" To: "'Ant Users List'" Sent: Wednesday, September 03, 2003 8:05 PM Subject: Substrings > Hi, > > I have update some manifest files named like SO.MF, AL.MF etc using the > manifest task. Each of these is contained in projects that are named SCA_SO, > SCA_AL etc. > > I need a generic ant script which would be supplied the name of the project > which would set a property. And from the project name I have to deduce the > name of the manifest file to update. So I would get "SCA_SO" and I have to > somehow do a substring to get the characters after the underscore i.e "SO" > and add ".MF" to them to get "SO.MF". > > If my manifest files were named like "SCA_SO.MF" then I could simply add > ".MF" to get the name of the file. I have tried this and it works but > unfortunately my manifest files aren't named like that. > > > > Any ideas. > > Vik > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org