> > I have certain that maven rc3 returns errors for the shell. To prove it,
i
> do this tests. The return value of maven was 70, indicating that an error
> happened:
>
> Ok, good.
>
> Hmm, hold on a mo -- it's not been well tested with CYGWIN.
>
> > Does Gump realy work fine on windows 2000?? If not, what the
> functionalities that are not

I did recall that with Python, exitcode handling is different on Microsoft
verse *nix, so I just ran these unit tests on W2K:

    def testGoodLaunch(self):
        env=Cmd('env')
        result=execute(env)
        self.assertEqual('Ought succeed', result.state,CMD_STATE_SUCCESS)

    def testBadLaunch(self):
        env=Cmd('eXnXv')
        result=execute(env)
        self.assertEqual('Ought failed', result.state, CMD_STATE_FAILED)

    def testFailedLaunch(self):
        env=Cmd('exit 2')
        result=execute(env)
        self.assertEqual('Ought failed', result.state, CMD_STATE_FAILED)
        self.assertEqual('Ought failed', result.exit_code, 2)

The Maven builder runs very similar code.

            #
            # Get the appropriate build command...
            #
            cmd=self.getMavenCommand(project)

            if cmd:
                # Execute the command ....
                cmdResult=execute(cmd,workspace.tmpdir)

                # Update Context
                work=CommandWorkItem(WORK_TYPE_BUILD,cmd,cmdResult)
                project.performedWork(work)
                project.setBuilt(1)

                # Update Context w/ Results
                if not cmdResult.state==CMD_STATE_SUCCESS:
                    reason=REASON_BUILD_FAILED

I just can't fathom why this isn't being detected. I even tried it with a
value of 70.

Can you send me a full log, point to point? Could you do it with --debug
(you might need to pass 'all' and '--debug'.)

regards

Adam


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

Reply via email to