Setting ant property with bash command result
How can I set the ant property to a value that is the result of executing a bash script? For example, I need a target program that uses the svn and bash utilities to control the build progress. More specifically, the target I am trying to create will be used to determine if there are modified files in the deployed application via the command:
svn stat | awk -F '' ' $1=="A" || $1 == "C" || $1=="M" || $1 == "D" || $1 == "R" {print $1}' | wc -l
I need to set the result of this command to some kind of property $ {modified_lines_number}.
+2
source to share