[
http://jira.codehaus.org/browse/MEXEC-27?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jerome Lacoste closed MEXEC-27.
-------------------------------
Resolution: Fixed
I've committed something that should fix the issue.
Some small functional differences from Jay's patch:
* both standard & error output are redirected to the same file
* I kept the standard maven output instead of using System.out
$ svn commit -m "MEXEC-27 support redirect execution output to a file. Original
patch by Jay Dolan"
Sending src/main/java/org/codehaus/mojo/exec/ExecMojo.java
Adding src/main/java/org/codehaus/mojo/exec/StreamLog.java
Transmitting file data ..
Committed revision 6912.
Jay feel free to comment.
> Add outputFile support for capturing exec invocations (patch attached)
> ----------------------------------------------------------------------
>
> Key: MEXEC-27
> URL: http://jira.codehaus.org/browse/MEXEC-27
> Project: Maven 2.x Exec Plugin
> Issue Type: New Feature
> Components: exec
> Affects Versions: 1.0.2
> Reporter: Jay Dolan
> Assignee: Jerome Lacoste
> Fix For: 1.1-beta-2
>
> Attachments: exec-maven-plugin.patch,
> exec-maven-plugin_add-output-file.patch
>
>
> 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().
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email