Bug 291255 - Enhancement request: Improvements to the <eclipse.incrementalBuild/> Ant task
Summary: Enhancement request: Improvements to the <eclipse.incrementalBuild/> Ant task
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.5   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-02 16:54 EDT by Mike Morearty CLA
Modified: 2019-09-06 15:35 EDT (History)
0 users

See Also:


Attachments
Proposed patch (7.40 KB, patch)
2009-10-02 16:55 EDT, Mike Morearty CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Morearty CLA 2009-10-02 16:54:26 EDT
User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 GTB5
Build Identifier: 20090621-0832

<eclipse.incrementalBuild/> can be used to build a project.  But there are several things that most build-related Ant tasks (such as <javac/>) do but <eclipse.incrementalBuild/> does not:

1. They typically log build errors and warnings.
2. They typically "fail" the build if any compilation errors occurred (unless failonerror="false").
3. <javac/> also has a fairly recent addition, errorProperty="propertyname", which lets you specify a property that will be set to "true" if any build errors occurred.

The first and second are especially unusual.  Basically, <eclipse.incrementalBuild/> silently "succeeds" no matter what actually happened during the build.

This patch addresses these problems:
1. Adds a "showproblems" attribute which defaults to true.  If true, errors and warnings are logged.
2. Adds a "failonerror" attribute which defaults to true.  If true, and the specified resources have any build errors, then an exception is thrown indicating that the Ant task failed.
3. Adds an "errorProperty" attribute.

Frustratingly, I was unable to test this patch -- it built, but I was unable to configure my environment to create a working Eclipse environment in which to test these changes.  Not sure what I was doing wrong.

Reproducible: Always
Comment 1 Mike Morearty CLA 2009-10-02 16:55:06 EDT
Created attachment 148695 [details]
Proposed patch
Comment 2 Eclipse Webmaster CLA 2019-09-06 15:35:30 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.