ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 2942] - Build Event Listener does not catch exception
Date Wed, 01 Aug 2001 13:29:28 GMT
PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2942

*** shadow/2942	Wed Aug  1 06:26:39 2001
--- shadow/2942.tmp.21884	Wed Aug  1 06:29:28 2001
***************
*** 2,9 ****
  | Build Event Listener does not catch exception                              |
  +----------------------------------------------------------------------------+
  |        Bug #: 2942                        Product: Ant                     |
! |       Status: NEW                         Version: Nightly build           |
! |   Resolution:                            Platform: Sun                     |
  |     Severity: Blocker                  OS/Version: Other                   |
  |     Priority: Other                     Component: Build Process           |
  +----------------------------------------------------------------------------+
--- 2,9 ----
  | Build Event Listener does not catch exception                              |
  +----------------------------------------------------------------------------+
  |        Bug #: 2942                        Product: Ant                     |
! |       Status: RESOLVED                    Version: Nightly build           |
! |   Resolution: WORKSFORME                 Platform: Sun                     |
  |     Severity: Blocker                  OS/Version: Other                   |
  |     Priority: Other                     Component: Build Process           |
  +----------------------------------------------------------------------------+
***************
*** 37,39 ****
--- 37,79 ----
  ------- Additional Comments From conor@cortexebusiness.com.au  2001-08-01 06:26 -------
  Created an attachment (id=377)
  Simple listener
+ 
+ 
+ ------- Additional Comments From conor@cortexebusiness.com.au  2001-08-01 06:29 -------
+ OK, I have attached a simple listener implementation. I have a simple buikld 
+ file which attempts to copy a non-existent file and another target which does 
+ nothing. These are the reuslts for me when I run this. Note the last line of 
+ output in each run and in particular the presence of the exception in the 
+ failure case
+ 
+ F:\antdev\bugs\bug2942>ant -listener TestListener ok
+ Buildfile: build.xml
+ Listener: build started
+ 
+ ok:
+ Listener: target started
+ Listener: target finished
+ 
+ BUILD SUCCESSFUL
+ 
+ Total time: 1 second
+ Build finished without error
+ F:\antdev\bugs\bug2942>ant -listener TestListener
+ Buildfile: build.xml
+ Listener: build started
+ 
+ main:
+ Listener: target started
+      [copy] Listener: task started
+      [copy] Could not find file F:\antdev\bugs\bug2942\foo to copy.
+ Listener: task finished
+ Listener: target finished
+ 
+ BUILD FAILED
+ 
+ F:\antdev\bugs\bug2942\build.xml:3: Could not find file F:\antdev\bugs\bug2942
+ \foo to copy.
+ 
+ Total time: 1 second
+ Listener: build finished with exception = org.apache.tools.ant.BuildException
+ F:\antdev\bugs\bug2942>
\ No newline at end of file

Mime
View raw message