Re: filterina a file using in jar -> metainf task

2010-02-03 Thread Dimitris Mouchritsas
Hi Antoine, thanks for the reply. Yes in the end that's what I did. I create a ${build.dir}/filtered directory where I copy the files I want to filter. I just had hoped if the jar was supporting this, so I could avoid the copy. Regards Dimitris Antoine Levy Lambert wrote: Hello Dimitris, you

Re: filterina a file using in jar -> metainf task

2010-02-02 Thread Antoine Levy Lambert
Hello Dimitris, you can change persistence.xml before letting the task consume it with the copy task as you mention. Another approach is to build a standard jar without the concrete properties of a deployment environment and to tweak the jar at deployment time. Ant can update zip/jar/war/ea

filterina a file using in jar -> metainf task

2010-02-02 Thread Dimitris Mouchritsas
Hi all, is it possible to use a filter in the metainf task of jar task? Currently my build file is like this: In etc/domain/META-INF I have the persistence.xml file for my entity beans and I would like to be able to pass the datasource nam