RE: invoker test failure

2007-07-04 Thread Brian E. Fox
Actually this problem turned out to be a bug in the m2.0.7 bat file. Once I 
fixed it, the invoker started working (betterstill have trouble with the 
mvn shell script in cygwin).

-Original Message-
From: Kenney Westerhof [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 04, 2007 9:09 AM
To: Maven Developers List
Subject: Re: invoker test failure

Try again, I just committed a fix.

-- Kenney

Brian E. Fox wrote:
> I'm getting an error building the 2.0.7-snapshot invoker:
> 
> Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 11.861
> sec <<< FAILURE!
> testBuildShouldFail(org.apache.maven.shared.invoker.DefaultInvokerTest)
> Time elapsed: 3.782 sec  <<< FAILURE!
> junit.framework.AssertionFailedError: expected:<1> but was:<0>
> 
> 
> InvocationResult result = invoker.execute( request );
> 
> assertEquals( 1, result.getExitCode() );
> 
> 
> 
> I'm using m2.0.7 to run this on XP. I know there were some issues around
> 2.0.7 at one point not returning the correct exit code. Is anyone else
> seeing this issue with Invoker?
> 
> BTW..I'm really just trying to dig into the invoker to test why it fails
> to find the maven executable when running through cygwin on windows:
> 
> Tests run: 29, Failures: 0, Errors: 29, Skipped: 0, Time elapsed: 4.689
> sec <<< FAILURE!
> testProject01(org.apache.maven.plugin.eclipse.EclipsePluginTest)  Time
> elapsed: 0.126 sec  <<< ERROR!
> java.lang.NullPointerException
>   at
> org.apache.maven.shared.invoker.MavenCommandLineBuilder.findMavenExecuta
> ble(MavenCommandLineBuilder.java:367)
>   at
> org.apache.maven.shared.invoker.MavenCommandLineBuilder.build(MavenComma
> ndLineBuilder.java:33)
>   at
> org.apache.maven.shared.invoker.DefaultInvoker.execute(DefaultInvoker.ja
> va:88)
>   at
> org.apache.maven.shared.test.plugin.BuildTool.executeMaven(BuildTool.jav
> a:89)
>   
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: invoker test failure

2007-07-04 Thread Kenney Westerhof

Try again, I just committed a fix.

-- Kenney

Brian E. Fox wrote:

I'm getting an error building the 2.0.7-snapshot invoker:

Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 11.861
sec <<< FAILURE!
testBuildShouldFail(org.apache.maven.shared.invoker.DefaultInvokerTest)
Time elapsed: 3.782 sec  <<< FAILURE!
junit.framework.AssertionFailedError: expected:<1> but was:<0>


InvocationResult result = invoker.execute( request );

assertEquals( 1, result.getExitCode() );



I'm using m2.0.7 to run this on XP. I know there were some issues around
2.0.7 at one point not returning the correct exit code. Is anyone else
seeing this issue with Invoker?

BTW..I'm really just trying to dig into the invoker to test why it fails
to find the maven executable when running through cygwin on windows:

Tests run: 29, Failures: 0, Errors: 29, Skipped: 0, Time elapsed: 4.689
sec <<< FAILURE!
testProject01(org.apache.maven.plugin.eclipse.EclipsePluginTest)  Time
elapsed: 0.126 sec  <<< ERROR!
java.lang.NullPointerException
at
org.apache.maven.shared.invoker.MavenCommandLineBuilder.findMavenExecuta
ble(MavenCommandLineBuilder.java:367)
at
org.apache.maven.shared.invoker.MavenCommandLineBuilder.build(MavenComma
ndLineBuilder.java:33)
at
org.apache.maven.shared.invoker.DefaultInvoker.execute(DefaultInvoker.ja
va:88)
at
org.apache.maven.shared.test.plugin.BuildTool.executeMaven(BuildTool.jav
a:89)



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



invoker test failure

2007-07-02 Thread Brian E. Fox
I'm getting an error building the 2.0.7-snapshot invoker:

Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 11.861
sec <<< FAILURE!
testBuildShouldFail(org.apache.maven.shared.invoker.DefaultInvokerTest)
Time elapsed: 3.782 sec  <<< FAILURE!
junit.framework.AssertionFailedError: expected:<1> but was:<0>


InvocationResult result = invoker.execute( request );

assertEquals( 1, result.getExitCode() );



I'm using m2.0.7 to run this on XP. I know there were some issues around
2.0.7 at one point not returning the correct exit code. Is anyone else
seeing this issue with Invoker?

BTW..I'm really just trying to dig into the invoker to test why it fails
to find the maven executable when running through cygwin on windows:

Tests run: 29, Failures: 0, Errors: 29, Skipped: 0, Time elapsed: 4.689
sec <<< FAILURE!
testProject01(org.apache.maven.plugin.eclipse.EclipsePluginTest)  Time
elapsed: 0.126 sec  <<< ERROR!
java.lang.NullPointerException
at
org.apache.maven.shared.invoker.MavenCommandLineBuilder.findMavenExecuta
ble(MavenCommandLineBuilder.java:367)
at
org.apache.maven.shared.invoker.MavenCommandLineBuilder.build(MavenComma
ndLineBuilder.java:33)
at
org.apache.maven.shared.invoker.DefaultInvoker.execute(DefaultInvoker.ja
va:88)
at
org.apache.maven.shared.test.plugin.BuildTool.executeMaven(BuildTool.jav
a:89)



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]