Reputation: 32271
I need to replace a regex match with a value from a properties file.
It would look like:
<replaceregexp
file="test.txt"
match="blabla"
replace="some.property"
>
</replaceregexp>
(That doesn't work, it's just to show what I need)
some.property is in a file called test.properties
Upvotes: 0
Views: 2323
Reputation: 392
I think that the problem is that you are using some.property instead of ${some.property}. That's how I have it working.
Upvotes: 2
Reputation: 77951
Use the loadproperties task to load properties from a file.
Upvotes: 0