I have settings in the properties file located in the bank, which I want to change during the build using ant. Ideally, if I can find a specific text in a properties file and easily replace it, I would like to do it, but I don't know how to do it.
So, I thought that I could overwrite it with another properties file that already has new settings. A box already exists in my directory, and the hierarchy of my jar is as follows:
food.jar
/com/food/donut.properties
some file...
some file...
If I had another donut.properties file with another parameter located in a different directory. How to rewrite it with ant?
Thanks for the help, very grateful!
EDIT:
With the following code, I was able to copy the properties file to the jar. But whenever I try to copy a new properties file into the same directory of the old properties file, it is not replaced. (ie if I change the prefix to "com", I can see that the new properties file is inserted into the jar. If the prefix is changed to com / food, nothing is replaced. What am I doing wrong?
<jar destfile="${dist.dir}/food.jar" update="true">
<zipfileset file="donut.xml" prefix="com/food/" />
</jar>
source
share