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=3304

*** shadow/3304 Tue Aug 28 07:33:32 2001
--- shadow/3304.tmp.7320        Tue Aug 28 07:33:32 2001
***************
*** 0 ****
--- 1,31 ----
+ +============================================================================+
+ | [PATCH] Added "ant.target.name" property                                   |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 3304                        Product: Ant                     |
+ |       Status: NEW                         Version: Nightly build           |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Enhancement              OS/Version: Windows NT/2K           |
+ |     Priority: Other                     Component: Core                    |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                   |
+ |  Reported By: [EMAIL PROTECTED]                                             
  |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ The following patch allows the user to access the current target being 
executed 
+ by using the ${ant.target.name} variable.  I added this functionality in 
order 
+ to include the target name in the alert e-mail sent out after a build 
failure.  
+ The patch was made to the 8/28/01 nightly drop source code, and has been 
tested 
+ on WinNT 4.00.1381 (Service Pack 5).
+ 
+ --- Project.java.old  Tue Aug 28 10:10:19 2001
+ +++ Project.java      Tue Aug 28 09:49:31 2001
+ @@ -598,6 +598,7 @@
+  
+          do {
+              curtarget = (Target) sortedTargets.elementAt(curidx++);
+ +            this.setProperty("ant.target.name", curtarget.getName());
+              curtarget.performTasks();
+          } while (!curtarget.getName().equals(targetName));
+      }

Reply via email to