You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@continuum.apache.org by ba...@apache.org on 2015/01/31 04:33:26 UTC
svn commit: r1656152 -
/continuum/trunk/continuum-api/src/main/java/org/apache/continuum/utils/shell/DefaultShellCommandHelper.java
Author: batkinson
Date: Sat Jan 31 03:33:25 2015
New Revision: 1656152
URL: http://svn.apache.org/r1656152
Log:
Extended shell helper to support unspecified working directory.
Modified:
continuum/trunk/continuum-api/src/main/java/org/apache/continuum/utils/shell/DefaultShellCommandHelper.java
Modified: continuum/trunk/continuum-api/src/main/java/org/apache/continuum/utils/shell/DefaultShellCommandHelper.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-api/src/main/java/org/apache/continuum/utils/shell/DefaultShellCommandHelper.java?rev=1656152&r1=1656151&r2=1656152&view=diff
==============================================================================
--- continuum/trunk/continuum-api/src/main/java/org/apache/continuum/utils/shell/DefaultShellCommandHelper.java (original)
+++ continuum/trunk/continuum-api/src/main/java/org/apache/continuum/utils/shell/DefaultShellCommandHelper.java Sat Jan 31 03:33:25 2015
@@ -190,7 +190,10 @@ public class DefaultShellCommandHelper
cl.setExecutable( executable );
- cl.setWorkingDirectory( workingDirectory.getAbsolutePath() );
+ if ( workingDirectory != null )
+ {
+ cl.setWorkingDirectory( workingDirectory.getAbsolutePath() );
+ }
if ( arguments != null )
{