It's all about the answers!

Ask a question

How to ignore error on RTC build.


John Bryan Sazon (341823) | asked Jul 07 '13, 10:38 p.m.
 Hi,

My ant script calls a batch script. Somehow minor errors are encountered but can be ignored. The task of the batch script has no problem but the build always complete with error. 

How can a build always completed successfully. 

Thanks!

One answer



permanent link
Spencer Murata (2.3k115870) | answered Jul 08 '13, 8:17 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
 Assuming you are using the JBE, there is no way to mask the exit code on the JBE side.  If the exit code is non-zero then it will be a failure.  Ant doesn't really let you manipulate the exit code, so really the only way to mask the failure while using JBE/Ant is to modify the batch script to return exit code zero if a failure is minor or expected.

~Spencer

Your answer


Register or to post your answer.