ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tibor Strausz <Tibor.Stra...@tridion.com>
Subject RE: Search a substring
Date Mon, 29 Jul 2002 15:20:47 GMT
whay does ant task don't support param input instead (besides) file input
it sounds a bit silly to write it to a file first only to read it again

tibi

> -----Original Message-----
> From: Dominique Devienne [mailto:DDevienne@lgc.com]
> Sent: Monday, July 29, 2002 5:14 PM
> To: 'Ant Users List'
> Subject: RE: Search a substring
> 
> 
> Ant doesn't support manipulating property values directly. 
> You have to go
> with a <script> (the easiest), or convoluted use of existing 
> tasks to go to
> file, do conversion there (Ant supports this very well), then 
> read back
> converted values in.
> 
> My advice would be to decompose you property into several, 
> which you can
> later compose to get you current property. So change:
> 
> DB_CONNECT_INFO=jdbc:oracle:thin:@host:1521:instance
> 
> Into
> 
> DB_HOST = host
> DB_PORT = 1521
> DB_PATH = instance
> DB_CONNECT_INFO=jdbc:oracle:thin:@${DB_HOST}:${DS_PORT}:${DB_PATH}
> 
> No need for parsing if you can do that... --DD
> 
> -----Original Message-----
> From: Portmann Stefan [mailto:Stefan.Portmann@bison-group.com] 
> Sent: Monday, July 29, 2002 5:52 AM
> To: Ant Users List
> Subject: AW: Search a substring
> 
> No, I need only to get/read the string at this specific position,
> because "instance" could also be "production", "test", or 
> anything else.
> I need only this substring for other proberty settings.
> 
> Stefan
> 
> > -----Original Message-----
> > From: Tibor Strausz [mailto:Tibor.Strausz@tridion.com] 
> > Sent: Monday, July 29, 2002 12:43
> > To: Ant Users List
> > Subject: RE: Search a substring
> > 
> > what do you want to do with it??
> > replace it? 
> > than use replaceregexp 
> > 
> http://jakarta.apache.org/ant/manual/OptionalTasks/replaceregexp.html
> > 
> > tibi
> > 
> > > -----Original Message-----
> > > From: Portmann Stefan [mailto:Stefan.Portmann@bison-group.com]
> > > Sent: Monday, July 29, 2002 11:59 AM
> > > To: ant-user@jakarta.apache.org
> > > Subject: Search a substring
> > > 
> > > 
> > > I need to search for a substring in property-value (read 
> > from a file), 
> > > for example in
> > > 
> > > DB_CONNECT_INFO=jdbc:oracle:thin:@host:1521:instance
> > > 
> > > "instance" is the necessary substring.
> > > Is it possible with Ant-tasks to search for any substrings 
> > in a common
> > > text-file?
> > > 
> > > Thanks
> > > 
> > > Stefan
> > > 
> > > 
> > --
> > To unsubscribe, e-mail:   
> > <mailto:ant-user-unsubscribe@jakarta.apache.org>
> > For 
> > additional commands, e-mail: 
> <mailto:ant-user-help@jakarta.apache.org>
> > 
> > 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:ant-user-help@jakarta.apache.org>
> 
> --
> To unsubscribe, e-mail:   
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:ant-user-help@jakarta.apache.org>
> 

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message