Bug 22459 - AntRunner prints stack trace on OperationCanceledException
Summary: AntRunner prints stack trace on OperationCanceledException
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 2.1 M2   Edit
Assignee: Jared Burns CLA
QA Contact:
URL:
Whiteboard:
Keywords: core
Depends on:
Blocks:
 
Reported: 2002-08-14 23:41 EDT by Roscoe Rush CLA
Modified: 2002-10-07 10:55 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 Roscoe Rush CLA 2002-08-14 23:41:28 EDT
AntRunner (actually internalAntRunner) prints a stack trace (presumably for 
debugging) on an exception. When using AntRunner with a ProgressMonitorDialog 
the cancel button generates an OperationCanceledExcpetion (Actually I believe 
it's the ProgressBuildListener. The AntRunner class prints the stack trace 
before throwing the exception on. 

It looks like the print stack trace code comes and goes in CVS, depending on 
branch, etc. But it is definitely in the offical R2.0 release.
Comment 1 Darin Swanson CLA 2002-09-18 12:33:41 EDT
When the user cancels the execution of Ant, it has been changed so that an info 
message is logged to the build listeners (which includes the Log console view).
Comment 2 Darin Swanson CLA 2002-09-18 12:34:55 EDT
Jared, please verify changes to InternalAntRunner#run(List)
Comment 3 Darin Swanson CLA 2002-09-27 11:31:19 EDT
Please verify (Joe)
Comment 4 Jared Burns CLA 2002-10-04 12:06:21 EDT
When I cancel an Ant script, I get the following (minus my "[]" markup) in the 
log view:

[red]BUILD FAILED: org.eclipse.core.runtime.OperationCanceledException: Build 
cancelled.[/red]
[blue]Build cancelled.[/blue]
Comment 5 Darin Swanson CLA 2002-10-04 14:41:04 EDT
Fixed up in NullBuildLogger.
Please verify.
Comment 6 Jared Burns CLA 2002-10-07 10:55:47 EDT
Verified.