ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vikas Phonsa <VPho...@suz.com>
Subject RE: Substrings
Date Thu, 04 Sep 2003 15:48:00 GMT
Thanks Antoine, Peter. I got that.

Vik

-----Original Message-----
From: peter reilly [mailto:peter.reilly@corvil.com] 
Sent: Thursday, September 04, 2003 6:43 AM
To: Ant Users List
Subject: Re: Substrings

On Wednesday 03 September 2003 19:33, Antoine Levy-Lambert wrote:
> Hi Vikas,
> I have read postings mentioning a propertyregexp task in ant-contrib or
> antelope.

The task is "propertyregex" and it is part
of ant-contrib.
See:
http://ant-contrib.sourceforge.net/tasks/propertyregex.html

Peter.

> Cheers,
> Antoine
> ----- Original Message -----
> From: "Vikas Phonsa" <VPhonsa@suz.com>
> To: "'Ant Users List'" <user@ant.apache.org>
> 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


---------------------------------------------------------------------
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


Mime
View raw message