Bug 283686 - Exit Code of External Builders should be interpreted
Summary: Exit Code of External Builders should be interpreted
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 3.5   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-16 06:19 EDT by Mark Lehmacher CLA
Modified: 2019-09-06 16:08 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Lehmacher CLA 2009-07-16 06:19:24 EDT
In my company we use a Java Preprocessor to preprocess our sources before compiling.

Right now it's integrated into Eclipse as an External Builder which runs a shell script which in turn applies the preprocessing stuff.

In some scenarios the shell script can't do it's work and returns with an exit code which is not zero. That information however is desregarded by Eclipse. It would be nice if exit codes could be interpreted to cause a Build Failure for the project.
Comment 1 Curtis Windatt CLA 2009-07-27 12:46:38 EDT
While exit codes like 0 are reasonably standard they are not universal.  The external builder is not going to handle this for you.  However it should be possible to provide some code to look at the result on do some additional processing.  Perhaps one of the ant committers can elaborate.
Comment 2 Darin Wright CLA 2009-07-27 13:05:22 EDT
To handle this properly, I think this would need to be configurable - i.e. allow the user to say which codes/ranges are fatal and which are acceptable. However, we don't currently have plans/resouces to do this. Contributions are welcome.
Comment 3 Eclipse Webmaster CLA 2019-09-06 16:08:06 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.