At present i am keeping the password [ unencrypted ] in a property file. This password get placed as is in the configuration xml using ant.  

 [ The configuration xml is for datasource, it is creating the object of dbcp.BasicDataSource ] 

Now, is it possible that after the ant target the password is copied in encrypted form. Heard the Jasypt can do that! Till now i haven't tried this. But, the problem doesn't end here. BasicDataSource do not accept encrypted password. Is there any replacement for BasicDatasource.

FYI: I am using Spring, if that matters.