Pausing an ANT Build on error

Pausing an ANT Build on error - welcome to our blog Techno Live, now we will discuss information about the Pausing an ANT Build on error, our admins on this blog has been around to collect information you are looking for so that we usakan to display complete information for you, and in this blog, you can also search for other information, ok please continue reading may be easily understood:

This is about : Pausing an ANT Build on error
And this article : Pausing an ANT Build on error

You can also see our article on:


Pausing an ANT Build on error

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.

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
)


Articles Pausing an ANT Build on error finished we discussed

A few of our information about the Pausing an ANT Build on error, I hope you can exploit carefully

No've You've finished reading an article on Pausing an ANT Build on error and many articles about modern home in our blog this, please read it. and url link of this article is http://liveeconcerts.blogspot.com/2010/05/pausing-ant-build-on-error.html Hopefully discussion articles on provide more knowledge about the world of tech gadgets.

Tag :

0 Response to "Pausing an ANT Build on error"

Post a Comment