Techno News Latest, Whatsapp, Samsung, How To Flash, MediaTek device, Sony Flash Tool Original, Free Browsing, Transfer Contacts, Moto Shop, Walton Primo, price and specification

Pausing an ANT Build on error

Pausing an ANT Build on error - we should be concerned about the technology that continues to grow, because the technology is created to facilitate our lives, with technology we can do any job faster so save time and money, ok on the blog Techno News Latest we will discuss a variety of new technologies that continue to grow, now we will membahs first about Pausing an ANT Build on error please see to finish:

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

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
)



information Pausing an ANT Build on error has been discussed

hopefully the information we have provided with the title Pausing an ANT Build on error can provide more knowledge for you in determining the choice of gadget that suits your needs.

you just finished reading the article Pausing an ANT Build on error if you think this information is worth to book mark or share please use link https://puriagatsari.blogspot.com/2010/05/pausing-ant-build-on-error.html to get more information about gadget please visit other pages on this blog, thank you.

Tag :
Share on Facebook
Share on Twitter
Share on Google+
Tags :

Related : Pausing an ANT Build on error

0 komentar:

Posting Komentar