[ http://jira.codehaus.org/browse/MAVEN-1674?page=all ]
     
Arnaud Heritier closed MAVEN-1674:
----------------------------------

    Resolution: Fixed

windows script fixed

> maven.bat returns an errorlevel even though the build is successful
> -------------------------------------------------------------------
>
>          Key: MAVEN-1674
>          URL: http://jira.codehaus.org/browse/MAVEN-1674
>      Project: Maven
>         Type: Bug
>   Components: core
>     Versions: 1.1-beta-1
>  Environment: Windows XP but all Windows NT like are concerned
>     Reporter: Arnaud Heritier
>     Assignee: Arnaud Heritier
>      Fix For: 1.1-beta-2

>
>
> If a previous run of maven (or of another application) sets the environment 
> variable ERROR_CODE to something else than 0, then all next maven runs will 
> return an errorlevel. If the maven script is called from another (for example 
> in the maven bootstrap or in an CI tool), this one will believe that maven 
> fails even though the build is successful.
> Here is an example :
> C:\OSS\Maven\1.X\SCM\plugins\trunk>set ERROR_CODE=1
> C:\OSS\Maven\1.X\SCM\plugins\trunk>echo %errorlevel%
> 0
> C:\OSS\Maven\1.X\SCM\plugins\trunk>maven -h
> usage: maven [options] [goal [goal2 [goal3] ...]]
> Options:
>  -D,--define arg    Define a system property
>  -E,--emacs         Produce logging information without adornments
>  -P,--plugin-help   Display help on using a given plugin
>  -X,--debug         Produce execution debug output
>  -b,--nobanner      Suppress logo banner
>  -d,--dir arg       Set effective working directory (ignored with -p or -f)
>  -e,--exception     Produce exception stack traces
>  -f,--find arg      Set project file and effective working directory by 
> finding
>                     the project file
>  -g,--goals         Display available goals
>  -h,--help          Display help information
>  -i,--info          Display system information
>  -o,--offline       Build is happening offline
>  -p,--pom arg       Set project file
>  -q,--quiet         Reduce execution output
>  -u,--usage         Display help on using the current project
>  -v,--version       Display version information
> C:\OSS\Maven\1.X\SCM\plugins\trunk>echo %errorlevel%
> 1

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to