ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregg Freeman" <>
Subject Duplicate target execution
Date Thu, 20 Dec 2007 20:23:39 GMT
I'm using Ant 1.7.0 (on Windows Vista) with Java 1.5.0_12.

I'm having a problem where the same target in an ant script gets executed 
multiple times.  Using this tiny script
as an example:

<project name="proj" basedir=".">
  <target name="build">
    <echo message="Building" />
  <target name="deploy" depends="build" >
    <echo message="Deploying" />

When I run:
ant build deploy

I get the following output:
Buildfile: testBuild.xml

     [echo] Building

     [echo] Building

     [echo] Deploying


I thought ant was supposed to take care of duplicate targets.  Is this a bug 
or an intentional change (I always thought
it only executed tasks once).?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message