Bug 179052 - [Ant] Ant project level builders should be able to run in Eclipse VM when eclipse.incrementalbuild triggers a full workspace build
Summary: [Ant] Ant project level builders should be able to run in Eclipse VM when ecl...
Status: ASSIGNED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-23 11:46 EDT by Antoine Levy Lambert CLA
Modified: 2019-09-06 16:05 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antoine Levy Lambert CLA 2007-03-23 11:46:04 EDT
Build ID: RAD 6.0.1 20050725_1800

Steps To Reproduce:
Create an Ant based project builder with the option "Run in the same JRE as the workspace"
Create a workspace level Ant launch configuration.
The launch configuration will run a build file containing <eclipse.incrementalbuild/> and also be defined to run in the same JRE as the workspace.
When you will run this launch configuration, when the time arrives when the project level ant builder is triggered, an error will happen (visible in .log file).

The error message says that concurrent Ant builds are not supported.

What eclipse.incrementalbuild triggers is a nested ant build, not really a concurrent ant build.
Comment 1 Darin Swanson CLA 2007-03-23 14:32:27 EDT
Thank you for the bug report.

While to the user this may seem true that it is a nested Ant build, the implementation of eclipse.incrementalbuild from what I remember is such that it does attempt to start a concurrent ant build. 

Note that the Eclipse Ant integration does not provide the eclipse.incrementalbuild task.
Comment 2 Antoine Levy Lambert CLA 2007-03-23 23:35:47 EDT
eclipse.incrementalbuild is provided by the plugin org.eclipse.core.resources

The ant task is not implemented in a fancy way. 

Building the workspace seems to be this line in the execute method.

ResourcesPlugin.getWorkspace().build(kind, monitor);

A solution to this issue would be to provide the possibility to start a build inside the Eclipse VM with a tolerance for nested builds ? Could the AntRunner be extended to provide this option ?
Comment 3 Darin Swanson CLA 2007-04-17 16:25:49 EDT
this support is not planned
Comment 4 Eclipse Webmaster CLA 2019-09-06 16:05:31 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.