I am creating an ANT script for which I am using a fileset and a regex to get my file and to get an expression in that file.
I also need to store the expression in a spreadsheet, which I am not sure how to do it.
I have learned somewhere that I could use replaceregexp, but I am not sure how do I do that.
I have used target tasks to do the search for the file and expression.
ANT is not a programming language so this is not a trivial problem to solve. The following example uses:
Example
This is example counts the number of occurrences of the string "one" in the resources sub directory:
Results are also written to an excel file "results.xlsx"
build.xml