You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Jesse Tilly <JT...@hoteltools.com> on 2000/11/03 01:26:28 UTC

Property file handler task

Has anyone defined a task that can modify a properties file?  Something
like:

<property-handler file="weblogic.properties">
  <property-change name="weblogic.httpd.enable" value="false"/>
</property-handler>

> J E S S E  E  T I L L Y
> Senior Programmer, Development
> ____________________________________________
> HotelTools, Inc.
> 100 Galleria Parkway, Suite 1020
> Atlanta, GA  30339
> ph: 770.956.4080 x5361
> fax: 770.956.4077
> cell: 678.524.5764
> http://www.hoteltools.com
> 
 <<Jesse Tilly.vcf>> 

RE: Property file handler task

Posted by Conor MacNeill <co...@ebinteractive.com.au>.
The <propertyfile> task was added after the 1.2 release. Can you have a look
at it and see if it meets your needs. It is currently undocumented, so you
will have to rely on the Javadoc which is reasonably comprehensive.

Conor


--
Conor MacNeill
conor@cortexebusiness.com.au
Cortex eBusiness
http://www.cortexebusiness.com.au

> -----Original Message-----
> From: Jesse Tilly [mailto:JTilly@hoteltools.com]
> Sent: Friday, 3 November 2000 11:26
> To: 'ant-dev@jakarta.apache.org'
> Subject: Property file handler task
>
>
> Has anyone defined a task that can modify a properties file?  Something
> like:
>
> <property-handler file="weblogic.properties">
>   <property-change name="weblogic.httpd.enable" value="false"/>
> </property-handler>
>
> > J E S S E  E  T I L L Y
> > Senior Programmer, Development
> > ____________________________________________
> > HotelTools, Inc.
> > 100 Galleria Parkway, Suite 1020
> > Atlanta, GA  30339
> > ph: 770.956.4080 x5361
> > fax: 770.956.4077
> > cell: 678.524.5764
> > http://www.hoteltools.com
> >
>  <<Jesse Tilly.vcf>>
>


Re: Property file handler task

Posted by Jason Dillon <ja...@planet57.com>.
Why don't you use a filter and copy task to do this?

--jason


On Thu, 2 Nov 2000, Jesse Tilly wrote:

> Has anyone defined a task that can modify a properties file?  Something
> like:
> 
> <property-handler file="weblogic.properties">
>   <property-change name="weblogic.httpd.enable" value="false"/>
> </property-handler>
> 
> > J E S S E  E  T I L L Y
> > Senior Programmer, Development
> > ____________________________________________
> > HotelTools, Inc.
> > 100 Galleria Parkway, Suite 1020
> > Atlanta, GA  30339
> > ph: 770.956.4080 x5361
> > fax: 770.956.4077
> > cell: 678.524.5764
> > http://www.hoteltools.com
> > 
>  <<Jesse Tilly.vcf>> 
>