ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 843] New - Ant task carries over property values from previous ant call
Date Mon, 05 Mar 2001 17:13:07 GMT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=843

*** shadow/843	Mon Mar  5 09:13:07 2001
--- shadow/843.tmp.3675	Mon Mar  5 09:13:07 2001
***************
*** 0 ****
--- 1,55 ----
+ +============================================================================+
+ | Ant task carries over property values from previous ant call               |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 843                         Product: Ant                     |
+ |       Status: NEW                         Version: 1.3                     |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Normal                   OS/Version: Windows NT/2K           |
+ |     Priority:                           Component: Core tasks              |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: ant-dev@jakarta.apache.org                                   |
+ |  Reported By: marzolfb@yahoo.com                                           |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ As a test I created two ant files, build1.xml and build2.xml. The source for 
+ these files is:
+ 
+ build1.xml:
+ 
+ <project name="Build Test" default="build">
+     <target name="build">
+         <property name="antfile" value="build1.xml" />
+         <ant antfile="build2.xml" target="build" />
+     </target>
+ </project>
+ 
+ build2.xml:
+ 
+ <project name="Build Test" default="build">
+     <target name="build">
+         <property name="antfile" value="build2.xml" />
+     <echo message="antfile: ${antfile}" />
+     </target>
+ </project>
+ 
+ When I call ant via:
+ 
+ ant -f build1.xml
+ 
+ the output I receive is:
+ 
+ Buildfile: build1.xml
+ 
+ build:
+ 
+ build:
+      [echo] antfile: build1.xml
+ 
+ BUILD SUCCESSFUL
+ 
+ I would expect that it would display the following instead:
+ 
+ [echo] antfile: build2.xml

Mime
View raw message