On 11/10/2010, at 8:29 PM, [email protected] wrote:

> Author: apadilla
> Date: Mon Oct 11 09:29:12 2010
> New Revision: 1021289
> 
> URL: http://svn.apache.org/viewvc?rev=1021289&view=rev
> Log:
> [NPANDAY-288] - import and compile simple VS 2010 projects
> 
> 
...
> Modified: 
> incubator/npanday/branches/npanday-vs2010-support/components/dotnet-executable/src/main/java/npanday/executable/impl/DefaultRepositoryNetExecutable.java
> URL: 
> http://svn.apache.org/viewvc/incubator/npanday/branches/npanday-vs2010-support/components/dotnet-executable/src/main/java/npanday/executable/impl/DefaultRepositoryNetExecutable.java?rev=1021289&r1=1021288&r2=1021289&view=diff
> ==============================================================================
> --- 
> incubator/npanday/branches/npanday-vs2010-support/components/dotnet-executable/src/main/java/npanday/executable/impl/DefaultRepositoryNetExecutable.java
>  (original)
> +++ 
> incubator/npanday/branches/npanday-vs2010-support/components/dotnet-executable/src/main/java/npanday/executable/impl/DefaultRepositoryNetExecutable.java
>  Mon Oct 11 09:29:12 2010
> @@ -98,7 +98,8 @@ public class DefaultRepositoryNetExecuta
>                 ( ( getExecutionPath() != null ) ? 
> getExecutionPath().getAbsolutePath() : "unknown" ) + ", Command = " +
>                 commands, e );
>         }
> -        if ( commandExecutor.getStandardOut().contains( "error" ) )
> +        if ( commandExecutor.getStandardOut().contains( "error" )
> +          && !commandExecutor.getStandardOut().contains( "exit code = 0" ) ) 
>        
>         {
>             throw new ExecutionException(
>                 "NPANDAY-063-001: Executable = " + getExecutable() + 
> ",Command = " + commands );
> 

What was this change for?

I guess there were some commands that said "error", even though successful - 
but are we sure they'll output that text?

Also, can you add any integration tests for all of these changes?

- Brett

--
Brett Porter
[email protected]
http://brettporter.wordpress.com/




Reply via email to