It seems there are dependencies missing because the build.xml file was written (wrongly) assuming that the order in the depends attribute matters. As a result, shuffling stuff around sometimes breaks the build. Worse, it may even be that it doesn't work even now on some platforms.
Anonymous
We could do with a full review of the build dependencies for the most/commonly used tasks.
I've bumped the priority due to some recent troubles with dependencies.
I have a library and a short piece of code that can generate a dependency graph from a given ant build file, this might be useful for this task. Whoever takes up this job can talk to me if they're interested.