Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 417802 - org.eclipse.ant.ui.antRunner does not close ui after completing execution
Summary: org.eclipse.ant.ui.antRunner does not close ui after completing execution
Status: CLOSED DUPLICATE of bug 413096
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 4.2.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-23 06:39 EDT by Alexey Sharykin CLA
Modified: 2013-09-26 11:25 EDT (History)
3 users (show)

See Also:


Attachments
workspace with simple build (5.09 MB, multipart/x-zip)
2013-09-23 06:39 EDT, Alexey Sharykin CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Sharykin CLA 2013-09-23 06:39:13 EDT
Created attachment 235711 [details]
workspace with simple build

org.eclipse.ant.ui.antRunner does not close ui after executing execution

for example if run ant file with command
eclipse\eclipsec.exe -data workspace -application org.eclipse.ant.core.antRunner -file workspace\test\ant.xml 
it will generate Test.class without any unclosed Eclipse instance
but in case
eclipse\eclipsec.exe -data workspace -application org.eclipse.ant.ui.antRunner -file workspace\test\ant.xml 
Eclipse instance will be not closed even after project build

Reproduced in 
eclipse-SDK-4.2.2-win32-x86_64
eclipse-standard-kepler-R-win32-x86_64
Comment 1 Michael Rennie CLA 2013-09-24 13:53:11 EDT
AntRunner just runs + completes as it always has returning EXIT_OK. I would have to check and see if it used to exit when supplied with a workspace in older versions.

Paul, have there been any changes recently that could cause the workbench to not exit when AntRunner finishes (and returns EXIT_OK)?
Comment 2 Michael Rennie CLA 2013-09-24 14:18:01 EDT
(In reply to Michael Rennie from comment #1)
> AntRunner just runs + completes as it always has returning EXIT_OK. I would
> have to check and see if it used to exit when supplied with a workspace in
> older versions.

Confirmed that the workbench starts and stays in 4.4 - but that only the splash screen shows and no workbench is actually started in 3.x.
Comment 3 Michael Rennie CLA 2013-09-24 14:25:31 EDT
(In reply to Michael Rennie from comment #2)
> (In reply to Michael Rennie from comment #1)
> > AntRunner just runs + completes as it always has returning EXIT_OK. I would
> > have to check and see if it used to exit when supplied with a workspace in
> > older versions.
> 
> Confirmed that the workbench starts and stays in 4.4 - but that only the
> splash screen shows and no workbench is actually started in 3.x.

For some context, when using the org.eclipse.ant.ui.antRunner application we end up using the org.eclipse.ant.internal.ui.WorkbenchAntRunner runner with the org.eclipse.ant.internal.ui.AntRunnerWorkbenchAdvisor that does not veto the normal shutdown from WorkbenchAdvisor#preShutdown().
Comment 4 Michael Rennie CLA 2013-09-26 11:25:58 EDT
Chatting with Paul, this is dupe of bug 413096, where the Platform is no longer honouring the request to not open windows.

*** This bug has been marked as a duplicate of bug 413096 ***