> > If the order of depends in target is not guaranteed, then what > > should be done > > to make sure that the targets are always run as expected. > is there any > > workaround for this? > > Am I missing something? I always thought the depending targets will be > executed in the order they have been entered like: > <target name="foo" depends="b, a, c"> > > First execute b, then a, and las c....
Not necessarily. Currently they are, but Ant does not guarantee it. If foo depends on a, b & c, then Ant guarantees that a, b & c will all be executed before "foo" is executed. You don't get any more guarantees than that. If you want b to run before a, then a should depend on b.
