Confirmed.

Ant version 1.4 compiled on September 3 2001
--> BUILD FAILED: Duplicate target: `twice'

Ant version 1.4.1 compiled on October 11 2001
--> BUILD FAILED: Duplicate target: `twice'

Apache Ant version 1.5 compiled on July 9 2002
--> BUILD FAILED: Duplicate target: `twice'

Apache Ant version 1.5.4 compiled on August 12 2003
--> BUILD FAILED: Duplicate target: `twice'

Apache Ant version 1.6.0 compiled on December 18 2003
--> uses the first implementation of "twice"

Apache Ant version 1.6.1 compiled on February 12 2004
--> uses the first implementation of "twice"

Apache Ant version 1.7alpha compiled on February 3 2004
--> uses the first implementation of "twice"

Apache Ant version 1.7alpha compiled on February 18 2004
--> uses the first implementation of "twice"
--> current HEAD


But or Feature?  :-)
Means - should I write a testcase?

BTW - nice hit, Dominique.


Jan




> -----Original Message-----
> From: Dominique Devienne [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 17, 2004 9:37 PM
> To: '[EMAIL PROTECTED]'
> Subject: REGRESSION: Ant 1.6+ doesn't detect duplicate targets
> 
> 
> C:\oss\org_apache\antx>C:\pro\ant1.5.1\bin\ant -f duplicate-target.xml
> Buildfile: duplicate-target.xml
> 
> BUILD FAILED
> Duplicate target: `twice'
> 
> Total time: 1 second
> C:\oss\org_apache\antx>C:\pro\ant1.5.2\bin\ant -f duplicate-target.xml
> Buildfile: duplicate-target.xml
> 
> BUILD FAILED
> Duplicate target: `twice'
> 
> Total time: 1 second
> C:\oss\org_apache\antx>C:\pro\ant1.6b\bin\ant -f duplicate-target.xml
> Buildfile: duplicate-target.xml
> 
> once:
> 
> BUILD SUCCESSFUL
> Total time: 0 seconds
> C:\oss\org_apache\antx>C:\pro\ant1.6\bin\ant -f duplicate-target.xml
> Buildfile: duplicate-target.xml
> 
> once:
> 
> BUILD SUCCESSFUL
> Total time: 0 seconds
> C:\oss\org_apache\antx>C:\pro\ant1.6.1\bin\ant -f duplicate-target.xml
> Buildfile: duplicate-target.xml
> 
> once:
> 
> BUILD SUCCESSFUL
> Total time: 0 seconds
> C:\oss\org_apache\antx>type duplicate-target.xml
> <?xml version="1.0"?>
> <project name="once twice gone!" default="once">
>   <target name="once" />
>   <target name="twice" />
>   <target name="twice" />
> </project>
> 
> C:\oss\org_apache\antx>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Reply via email to