Author: lcorneliussen
Date: Fri Dec 30 08:20:23 2011
New Revision: 1225772
URL: http://svn.apache.org/viewvc?rev=1225772&view=rev
Log:
Improved logging for executables
Modified:
incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/impl/DefaultNetExecutable.java
Modified:
incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/impl/DefaultNetExecutable.java
URL:
http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/impl/DefaultNetExecutable.java?rev=1225772&r1=1225771&r2=1225772&view=diff
==============================================================================
---
incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/impl/DefaultNetExecutable.java
(original)
+++
incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/impl/DefaultNetExecutable.java
Fri Dec 30 08:20:23 2011
@@ -101,14 +101,15 @@ public class DefaultNetExecutable
CommandExecutor commandExecutor =
CommandExecutor.Factory.createDefaultCommmandExecutor();
commandExecutor.setLogger( logger );
+ final File executionPath = getExecutionPath();
try
{
- commandExecutor.executeCommand( getExecutable(), commands,
getExecutionPath(), true );
+ commandExecutor.executeCommand( getExecutable(), commands,
executionPath, true );
}
catch ( ExecutionException e )
{
- throw new ExecutionException( "NPANDAY-070-000: Execution Path = "
+
- ( ( getExecutionPath() != null ) ?
getExecutionPath().getAbsolutePath() : "unknown" ) + ", Command = " +
+ throw new ExecutionException( "NPANDAY-070-000: Error executing
command: Execution path:" +
+ ( ( executionPath != null ) ? executionPath.getAbsolutePath()
: "unknown" ) + ", Command = " +
commands, e );
}