Details
Description
Attached is a patch which adds optional outputFile support so that exec invocations may be captured to a text file, e.g.:
<configuration>
<executable>/usr/bin/svnversion</executable>
<outputFile>src/main/webapp/version.txt</outputFile>
</configuration>
When no outputFile is present, System.out is used for stdout rather than getLog().info().
I've attached an extension to my original patch. The extension introduces a "failOnError" boolean to allow the plugin to perform "optional" jobs (nice-to-have's). Set failOnError to false in the <configuration> element of your pom.