Tech News World, Contacts Samsung Galaxy, Windows 8, Nokia Lumia, Quad Core Smart Phones, HTC smartphone, Google Nexus, MacBook, PayPal

Tuesday, May 25, 2010

Pausing an ANT Build on error

Pausing an ANT Build on error - Although I work in the office and a lot of work that makes me tired but still I make a blog Tech News World and still will update it for you because this is part of my hobby who likes the world of technology, especially about the gadget, now we will discuss first about Pausing an ANT Build on error because it is the topic that you are now looking for, please refer to the information I provide in the guarantee for you,

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
)



so much information about Pausing an ANT Build on error

hopefully information Pausing an ANT Build on error can provide useful knowledge for you in getting information about the latest gadgets,

just finished your reading article about Pausing an ANT Build on error if you feel this article useful for you please bookmark or share using link http://aziin5teens.blogspot.com/2010/05/pausing-ant-build-on-error.html for more people know

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

Related : Pausing an ANT Build on error

0 comments:

Post a Comment