Problem with error code returned by ant.
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   KrishnaMurthy_G
Posted On:   Monday, October 29, 2007 01:21 PM

setlocal call ant echo error level is %errorlevel% if errorlevel 1 goto :END_FARMER echo ## echo ## Congratulations! The build is successful. You can find farmer.jar and shared.jar in the current directory. echo ## goto :FINISH :END if errorlevel 1 echo errors during build time /T else goto :FINISH :END_FARMER echo in end farmer if exist farmer.jar del /Q /F farmer.jar if exist shared.jar del /Q /F shared.jar :FINISH endlocal Here even if the test cases pass or fail through ant I am getting the errorlevel as 1. Please tell me how to solve the problem.    More>>

setlocal



call ant


echo error level is %errorlevel%


if errorlevel 1 goto :END_FARMER




echo ##


echo ## Congratulations! The build is successful. You can find farmer.jar and shared.jar in the current directory.


echo ##


goto :FINISH




:END


if errorlevel 1 echo errors during build


time /T


else


goto :FINISH


:END_FARMER


echo in end farmer


if exist farmer.jar del /Q /F farmer.jar


if exist shared.jar del /Q /F shared.jar


:FINISH


endlocal




Here even if the test cases pass or fail through ant I am getting the errorlevel as 1.

Please tell me how to solve the problem.

Very urgent.




Thanks


KrishnaMurthy.G.    <<Less
About | Sitemap | Contact