A favourite that trips me up is that the destination files are newer than the source files, so no copy actually happens. Maybe you need to add overwrite="true" to the <copy>?
Hope this helps, Keith -----Original Message----- From: jake_ryan [mailto:[EMAIL PROTECTED] Sent: 01 March 2007 16:14 To: user@ant.apache.org Subject: Re: [SEC=UNCLASSIFIED] Ant filterset doesnot work Forgot to mention.. Here are the files: file-1: cc.db.username=itsme cc.db.password=itsme file-2 DbUser=shared DbPassword=shared After running ant, still I see DbUser and DbPassword as shared/shared. I expected they wouldbe itsme/itsme. I tried to use begintoken="%" endtoken="*" aswell, but of no use. jake_ryan wrote: > > I have a property file-1 where cc.db.username and cc.db.password are > defined. > > There is property file-2 with tokens DbUser and DbPassword with some > default values, that will be copied to a directory. > > My task is to replace values of DbUser and DbPassword in file-2 with > values of cc.db.username and cc.db.password in file-1. > > I have a code like this: > <echo message="Copying SPP_CC config file to > ${jboss.local.conf.dir}"></echo> > <copy file="${cc.config.files.dir}/SPP_CC_Config.properties" > > tofile="${jboss.local.conf.dir}/SPP_CC_Config.properties" filtering="on"> > <filterset> > <filter token="DbUser" value="${cc.db.username}"/> > <filter token="DbPassword" value="${cc.db.password}"/> > </filterset> > </copy> > > After running ant, I get successful message but still the copied file > contain old values. How to debug this? What is wrong with my code? > > Thanks a bunch! > -- View this message in context: http://www.nabble.com/Ant-filterset-doesnot-work-tf3327767.html#a9252698 Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]