You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Christian Schulte (JIRA)" <ji...@codehaus.org> on 2006/01/23 16:11:06 UTC
[jira] Created: (MNG-2002) The mvn.bat Script does not return the
error-code of Maven
The mvn.bat Script does not return the error-code of Maven
----------------------------------------------------------
Key: MNG-2002
URL: http://jira.codehaus.org/browse/MNG-2002
Project: Maven 2
Type: Bug
Components: Command Line
Versions: 2.0, 2.0.1, 2.0.2
Environment: Windows XP
Reporter: Christian Schulte
Priority: Blocker
The mvn.bat Script does not return with an error-code if Maven failed. The scipt only returns error-codes for problems with the environment. If Maven fails the Script does not propagate Maven's error code back to the caller. Since we are calling mvn.bat from some ant-wrapper-script it is essential for us to have mvn.bat return an error if Maven fails instead of success.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Reopened: (MNG-2002) The mvn.bat Script does not return the
error-code of Maven
Posted by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2002?page=all ]
Emmanuel Venisse reopened MNG-2002:
-----------------------------------
Assign To: Emmanuel Venisse
I just test it with ant and it doesn't work. It seems that ant doesn't get error code like us in continuum.
> The mvn.bat Script does not return the error-code of Maven
> ----------------------------------------------------------
>
> Key: MNG-2002
> URL: http://jira.codehaus.org/browse/MNG-2002
> Project: Maven 2
> Type: Bug
> Components: Command Line
> Versions: 2.0, 2.0.1, 2.0.2
> Environment: Windows XP
> Reporter: Christian Schulte
> Assignee: Emmanuel Venisse
> Priority: Blocker
>
>
> The mvn.bat Script does not return with an error-code if Maven failed. The scipt only returns error-codes for problems with the environment. If Maven fails the Script does not propagate Maven's error code back to the caller. Since we are calling mvn.bat from some ant-wrapper-script it is essential for us to have mvn.bat return an error if Maven fails instead of success.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Closed: (MNG-2002) The mvn.bat Script does not return the
error-code of Maven
Posted by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2002?page=all ]
Emmanuel Venisse closed MNG-2002:
---------------------------------
Resolution: Won't Fix
It works fine in 2.0.2. We use it with Continuum and if thare are failuires in maven, the correct erro code is transmitted to caller.
You must set MAVEN_TERMINATE_CMD env var to "on" before to call mvn from ant.
> The mvn.bat Script does not return the error-code of Maven
> ----------------------------------------------------------
>
> Key: MNG-2002
> URL: http://jira.codehaus.org/browse/MNG-2002
> Project: Maven 2
> Type: Bug
> Components: Command Line
> Versions: 2.0, 2.0.1, 2.0.2
> Environment: Windows XP
> Reporter: Christian Schulte
> Priority: Blocker
>
>
> The mvn.bat Script does not return with an error-code if Maven failed. The scipt only returns error-codes for problems with the environment. If Maven fails the Script does not propagate Maven's error code back to the caller. Since we are calling mvn.bat from some ant-wrapper-script it is essential for us to have mvn.bat return an error if Maven fails instead of success.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Closed: (MNG-2002) The mvn.bat Script does not return the
error-code of Maven
Posted by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2002?page=all ]
Emmanuel Venisse closed MNG-2002:
---------------------------------
Resolution: Fixed
Fix Version: 2.0.3
Fixed. It works now when we call mvn.bat from continuum and from ant.
> The mvn.bat Script does not return the error-code of Maven
> ----------------------------------------------------------
>
> Key: MNG-2002
> URL: http://jira.codehaus.org/browse/MNG-2002
> Project: Maven 2
> Type: Bug
> Components: Command Line
> Versions: 2.0, 2.0.1, 2.0.2
> Environment: Windows XP
> Reporter: Christian Schulte
> Assignee: Emmanuel Venisse
> Priority: Blocker
> Fix For: 2.0.3
>
>
> The mvn.bat Script does not return with an error-code if Maven failed. The scipt only returns error-codes for problems with the environment. If Maven fails the Script does not propagate Maven's error code back to the caller. Since we are calling mvn.bat from some ant-wrapper-script it is essential for us to have mvn.bat return an error if Maven fails instead of success.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org