ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: [Bug 607] Changed - Order not considered in build targets
Date Wed, 14 Feb 2001 17:55:57 GMT
Actually, I believe the contention was that the order in which you specify
targets in the "depends" attribute wasn't being respected, and that
instead, the targets listed in the "depends" attribute were executed
according to the order in which those targets appeared in the build-file.
This test-case disproves this:

  <target name="depend2">
    <echo message="target depend2"/>
  </target>

  <target name="depend3">
    <echo message="target depend3"/>
  </target>

  <target name="depend1">
    <echo message="target depend1"/>
  </target>

  <target name="checkdepends" depends="depend1,depend2,depend3"/>

$ ant checkdepends
target depend1
target depend2
target depend3

BUILD SUCCESSFUL
Total time: 1 second

Diane

--- bugzilla@apache.org wrote:
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=607
> 
> *** shadow/607	Wed Feb 14 08:59:32 2001
> --- shadow/607.tmp.21530	Wed Feb 14 09:18:41 2001
> ***************
> *** 2,11 ****
>   | Order not considered in build targets                               
>       |
>  
>
+----------------------------------------------------------------------------+
>   |        Bug #: 607                         Product: Ant              
>       |
> ! |       Status: NEW                         Version: 1.2              
>       |
> ! |   Resolution:                            Platform: PC               
>       |
> ! |     Severity: Major                    OS/Version:                  
>       |
> ! |     Priority:                           Component: Build Process    
>       |
>  
>
+----------------------------------------------------------------------------+
>   |  Assigned To: ant-dev@jakarta.apache.org                            
>       |
>   |  Reported By: sik@questra.com                                       
>       |
> --- 2,11 ----
>   | Order not considered in build targets                               
>       |
>  
>
+----------------------------------------------------------------------------+
>   |        Bug #: 607                         Product: Ant              
>       |
> ! |       Status: RESOLVED                    Version: 1.2              
>       |
> ! |   Resolution: WORKSFORME                 Platform: PC               
>       |
> ! |     Severity: Major                    OS/Version: All              
>       |
> ! |     Priority: High                      Component: Build Process    
>       |
>  
>
+----------------------------------------------------------------------------+
>   |  Assigned To: ant-dev@jakarta.apache.org                            
>       |
>   |  Reported By: sik@questra.com                                       
>       |
> ***************
> *** 27,30 ****
>   fashion and only have one dependency for each target. The current
>   Ant documentation indicates that ordering is respected, and I
>   have tested by moving targets in the build file and this
> ! changes ordering of the build.
> --- 27,78 ----
>   fashion and only have one dependency for each target. The current
>   Ant documentation indicates that ordering is respected, and I
>   have tested by moving targets in the build file and this
> ! changes ordering of the build.
> ! 
> ! ------- Additional Comments From glennm@apache.org  2001-02-14 09:18
> -------
> ! The following build file executes in the correct order:
> ! 
> ! ---
> ! <project name="test_order" default="order">
> !   <target name="order2">
> !   </target>
> ! 
> !   <target name="order1">
> !   </target>
> ! 
> !   <target name="order">
> !   </target>
> ! </project>
> ! ---
> ! 
> ! The resulting output is
> ! 
> ! ---
> ! Buildfile: build.xml
> ! 
> ! order1:
> ! 
> ! order2:
> ! 
> ! order:
> ! 
> ! BUILD SUCCESSFULL
> ! 
> ! Total time: 0 seconds.
> ! ---
> ! 
> ! If Ant behaved the way you describe, then the result should have been 
> ! 
> ! ---
> ! Buildfile: build.xml
> ! 
> ! order2:
> ! 
> ! order1:
> ! 
> ! order:
> ! 
> ! BUILD SUCCESSFULL
> ! 
> ! Total time: 0 seconds.
> ! --
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ant-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: ant-dev-help@jakarta.apache.org
> 


=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

Mime
View raw message