continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tryg...@apache.org
Subject svn commit: r209460 - in /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum: execution/AbstractBuildExecutor.java utils/shell/DefaultShellCommandHelper.java
Date Wed, 06 Jul 2005 13:45:53 GMT
Author: trygvis
Date: Wed Jul  6 06:45:51 2005
New Revision: 209460

URL: http://svn.apache.org/viewcvs?rev=209460&view=rev
Log:
o Centralizing shell command execution logging.

Modified:
    maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/AbstractBuildExecutor.java
    maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/utils/shell/DefaultShellCommandHelper.java

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/AbstractBuildExecutor.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/AbstractBuildExecutor.java?rev=209460&r1=209459&r2=209460&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/AbstractBuildExecutor.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/AbstractBuildExecutor.java
Wed Jul  6 06:45:51 2005
@@ -156,8 +156,6 @@
             }
             else
             {
-                getLogger().warn( "Using executable '" + e.getAbsolutePath() + "'." );
-
                 actualExecutable = e.getAbsolutePath();
             }
         }
@@ -166,11 +164,19 @@
         // Execute the build
         // ----------------------------------------------------------------------
 
+        getLogger().warn( "Executable '" + actualExecutable + "'." );
+
+        getLogger().info( "Arguments: " + arguments );
+
+        getLogger().info( "Working directory: " + workingDirectory.getAbsolutePath() );
+
         try
         {
             ExecutionResult result = shellCommandHelper.executeShellCommand( workingDirectory,
                                                                              actualExecutable,
                                                                              arguments );
+
+            getLogger().info( "Exit code: " + result.getExitCode() );
 
             return new ContinuumBuildExecutionResult( result.getExitCode() == 0,
                                                       result.getStandardOutput(),

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/utils/shell/DefaultShellCommandHelper.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/utils/shell/DefaultShellCommandHelper.java?rev=209460&r1=209459&r2=209460&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/utils/shell/DefaultShellCommandHelper.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/utils/shell/DefaultShellCommandHelper.java
Wed Jul  6 06:45:51 2005
@@ -80,10 +80,6 @@
 
         CommandLineUtils.StringStreamConsumer stdout = new CommandLineUtils.StringStreamConsumer();
 
-        getLogger().info( "Executing: " + cl );
-
-        getLogger().info( "Working directory: " + workingDirectory.getAbsolutePath() );
-
         int exitCode = CommandLineUtils.executeCommandLine( cl, stdout, stderr );
 
         // ----------------------------------------------------------------------



Mime
View raw message