RE: mvn.bat and error_code (Maven 2.0.7 and Windows XP)

2007-08-24 Thread Andreas Guther
Thank you!

Any idea when Maven 2.0.8 might be out?

Andreas



-Original Message-
From: Dan Tran [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 23, 2007 4:23 PM
To: Maven Users List
Subject: Re: mvn.bat and error_code (Maven 2.0.7 and Windows XP)

http://jira.codehaus.org/browse/MNG-3084

On 8/23/07, Andreas Guther <[EMAIL PROTECTED]> wrote:
> Maven 2.0.7 mvn.bat errorlevel return code problem.
>
> Hi
> I am failing to capture the mvn.bat return code.
>
>
> Basically I have a batch file that calls mvn several times.  In case
of
> an error I would like to stop calling following mvn calls.
>
>
>
> Example
>
> call mvn clean:clean
> IF ERRORLEVEL 0 GOTO CONTINUE
> GOTO CLEANERROR
> ... and so on...
>
> The error level seems not to be propagated to my batch file.
>
> If I use "SET MAVEN_TERMINATE_CMD=on" in my batch file then in case of
> an error my batch file is terminated.
>
> There must be a way to capture the return code and handle it from a
> calling batch file, but which???
>
> Thanks in advance for any help
>
> -
> 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]


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



Re: mvn.bat and error_code (Maven 2.0.7 and Windows XP)

2007-08-23 Thread Dan Tran
http://jira.codehaus.org/browse/MNG-3084

On 8/23/07, Andreas Guther <[EMAIL PROTECTED]> wrote:
> Maven 2.0.7 mvn.bat errorlevel return code problem.
>
> Hi
> I am failing to capture the mvn.bat return code.
>
>
> Basically I have a batch file that calls mvn several times.  In case of
> an error I would like to stop calling following mvn calls.
>
>
>
> Example
>
> call mvn clean:clean
> IF ERRORLEVEL 0 GOTO CONTINUE
> GOTO CLEANERROR
> ... and so on...
>
> The error level seems not to be propagated to my batch file.
>
> If I use "SET MAVEN_TERMINATE_CMD=on" in my batch file then in case of
> an error my batch file is terminated.
>
> There must be a way to capture the return code and handle it from a
> calling batch file, but which???
>
> Thanks in advance for any help
>
> -
> 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]



mvn.bat and error_code (Maven 2.0.7 and Windows XP)

2007-08-23 Thread Andreas Guther
Maven 2.0.7 mvn.bat errorlevel return code problem.

Hi
I am failing to capture the mvn.bat return code.


Basically I have a batch file that calls mvn several times.  In case of
an error I would like to stop calling following mvn calls.



Example

call mvn clean:clean
IF ERRORLEVEL 0 GOTO CONTINUE
GOTO CLEANERROR
... and so on...

The error level seems not to be propagated to my batch file.

If I use "SET MAVEN_TERMINATE_CMD=on" in my batch file then in case of
an error my batch file is terminated.

There must be a way to capture the return code and handle it from a
calling batch file, but which???

Thanks in advance for any help

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