ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 3026] New: - targets getting executed more then once
Date Tue, 07 Aug 2001 20:17:00 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=3026

*** shadow/3026	Tue Aug  7 13:17:00 2001
--- shadow/3026.tmp.24521	Tue Aug  7 13:17:00 2001
***************
*** 0 ****
--- 1,70 ----
+ +============================================================================+
+ | targets getting executed more then once                                    |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 3026                        Product: Ant                     |
+ |       Status: NEW                         Version: 1.3                     |
+ |   Resolution:                            Platform: All                     |
+ |     Severity: Blocker                  OS/Version: All                     |
+ |     Priority: Other                     Component: Core tasks              |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: ant-dev@jakarta.apache.org                                   |
+ |  Reported By: bstout@ventaso.com                                           |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ In the below build file, "init" target gets called twice.  My understanding is 
+ targets will only get called once.  Happens on solaris and NT.
+ 
+ <project name="test" default="night" basedir=".">
+ 	<target name="init">
+ 		<echo message="init"/>
+ 	</target>
+ 	<target name="jar" depends="compile" >
+ 		<echo message="jar"/>
+ 	</target>
+ 	<target name="compile" depends="init" >
+ 		<echo message="compile"/>
+ 	</target>
+ 	<target name="war" depends="jar" >
+ 		<echo message="war"/>
+ 	</target>
+ 	<target name="night" depends="jar">
+ 		<echo message="Running"/>
+ 		<antcall target="war">
+ 		</antcall>
+ 	</target>
+ </project>
+ 
+ 
+ Here's the output:
+ Buildfile: make\test.xml
+ 
+ init:
+      [echo] init
+ 
+ compile:
+      [echo] compile
+ 
+ jar:
+      [echo] jar
+ 
+ night:
+      [echo] Running
+ 
+ init:
+      [echo] init
+ 
+ compile:
+      [echo] compile
+ 
+ jar:
+      [echo] jar
+ 
+ war:
+      [echo] war
+ 
+ BUILD SUCCESSFUL
+ 
+ Total time: 0 seconds
\ No newline at end of file

Mime
View raw message