Quite a few projects have multiple interlinked build scripts for creating a product build. For instance a complete build might involve compilation of the code, packaging the properties/config files, UTF-8 conversions, documentation generation, installer generation, etc. Each of these might be separate ant scripts or commands. If a build fails anywhere in-between it would be great if the build process is PAUSED so that one can easily see the exact failure point.
Pausing an ANT Build on error
By
Unknown
Pausing an ANT Build on error - How are you, friend? welcome to our blog super full Tech News, well now we will discuss the information you find on the search engines like google and other information that will we say this time is Pausing an ANT Build on error, we always strive to show you the complete information for you, all right please see:
Articles : Pausing an ANT Build on error
full Link : Pausing an ANT Build on error
Articles : Pausing an ANT Build on error
full Link : Pausing an ANT Build on error
You can also see our article on:
Pausing an ANT Build on error
One way to achieve this if you are using ANT, is to modify the ant.bat file that ships with ant in the bin folder.
Just below this line:
:runAntWithClasspath
"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% -cp "%CLASSPATH%" %ANT_CMD_LINE_ARGS%
Add the following lines:
if %ERRORLEVEL% == 1 (
ECHO =============================
echo. Ant Build Error
Echo Return Code = %ERRORLEVEL%
ECHO ==============================
PAUSE
)
Information about the Pausing an ANT Build on error we have conveyed
A few of our information about the Pausing an ANT Build on error, I hope you can exploit carefully
You have finished reading Pausing an ANT Build on error and many articles about Tech News in our blog this, please read it. and url link of this article is https://hibbydabby.blogspot.com/2010/05/pausing-ant-build-on-error.html Hopefully discussion articles on provide more knowledge about the world of new tech gadgets and tech news.
Tag :
Tags :
Related : Pausing an ANT Build on error
Subscribe to:
Post Comments (Atom)
0 komentar:
Post a Comment