I would like to get result of execution some shell command (git rev-list HEAD --count) like a content of tag. Something like this:
<git-count>git rev-list HEAD --count</git-count>
Is there a way to do that?
I would like to get result of execution some shell command (git rev-list HEAD --count) like a content of tag. Something like this:
<git-count>git rev-list HEAD --count</git-count>
Is there a way to do that?
I suggest you create a shell script, run git count in that script and pass the resulting variable to maven, e.g.
#!/bin/sh
GIT_COUNT=$( git rev-list HEAD --count )
mvn install "-Dgit-count=${GIT_COUNT}"