you might already have the a previous copy of the weblogic.properties file
in the target location and it's not overwriting.

try adding overwrite="yes"...

<filter token="DB_NAME" value="dev" />
<copy file="${project_home}/weblogic.properties.tmpl"
      tofile="${project_home}/weblogic.properties"
      filtering="yes"
      overwrite="yes" />


> -----Original Message-----
> From: John McCormick [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 14, 2000 12:43 PM
> To: [EMAIL PROTECTED]
> Subject: Does ant <filter> work?
> 
> 
> Does anyone know how to use the <filter> token? 
> It seems very simple in the documentation, but it doesn't 
> seem to work for me. 
> Below is some code taken from my ant build.xml file: 
> ===================================
> <filter token="DB_NAME" value="dev" />
> <copy file="${project_home}/weblogic.properties.tmpl" 
> tofile="${project_home}/weblogic.properties" filtering="yes">    
> </copy>
> ====================================
> I thought it would replace every occurance of "@DB_NAME@" and 
> replace it with "dev" in the target file being copied. 
> Do you know what I am doing wrong? 
> Thanks, 
> John McCormick 
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> 
> 
> 
> John Marc McCormick
> Manager, Midwest Region
> Wavebend Solutions
> 233 N. Michigan Ave., Suite 2500
> Chicago, IL 60601
> T: 312-233-1881
> F: 312.856-1314
> 
> Dynamic Solutions.    Sustainable Results.
> 
> 

Reply via email to