jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2.x Exec Plugin
  • MEXEC-67

Full command line should be printed in debug mode.

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.2
  • Component/s: exec
  • Labels:
    None

Description

It would be helpful to print the full command that is run when running maven in debug mode (similar to what is printed when the execution fails).

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Wendy Smoak added a comment - 13/May/11 9:48 AM

Since I just hunted down this change to see if the same thing could be done to the compiler plugin... here's what was changed:

$ svn log -r9703
------------------------------------------------------------------------
r9703 | pgier | 2009-05-13 11:59:17 -0400 (Wed, 13 May 2009) | 1 line

MEXEC-67 Print executed command when in debug mode.
------------------------------------------------------------------------

$ svn diff -r9702:9703
Index: src/main/java/org/codehaus/mojo/exec/ExecMojo.java
===================================================================
— src/main/java/org/codehaus/mojo/exec/ExecMojo.java (revision 9702)
+++ src/main/java/org/codehaus/mojo/exec/ExecMojo.java (revision 9703)
@@ -276,6 +276,8 @@

try
{
+ getLog().debug( "Executing command line: " + commandLine );
+
int resultCode = executeCommandLine( commandLine, stdout, stderr );

if ( isResultCodeAFailure( resultCode ) )

Show
Wendy Smoak added a comment - 13/May/11 9:48 AM Since I just hunted down this change to see if the same thing could be done to the compiler plugin... here's what was changed: $ svn log -r9703 ------------------------------------------------------------------------ r9703 | pgier | 2009-05-13 11:59:17 -0400 (Wed, 13 May 2009) | 1 line MEXEC-67 Print executed command when in debug mode. ------------------------------------------------------------------------ $ svn diff -r9702:9703 Index: src/main/java/org/codehaus/mojo/exec/ExecMojo.java =================================================================== — src/main/java/org/codehaus/mojo/exec/ExecMojo.java (revision 9702) +++ src/main/java/org/codehaus/mojo/exec/ExecMojo.java (revision 9703) @@ -276,6 +276,8 @@ try { + getLog().debug( "Executing command line: " + commandLine ); + int resultCode = executeCommandLine( commandLine, stdout, stderr ); if ( isResultCodeAFailure( resultCode ) )

People

  • Assignee:
    Paul Gier
    Reporter:
    Paul Gier
Vote (0)
Watch (0)

Dates

  • Created:
    13/May/09 10:47 AM
    Updated:
    13/May/11 9:48 AM
    Resolved:
    13/May/09 10:59 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.