I have attached a build.xml that I am using for a project. It is very simple, there is an init task which all other tasks (except clean) depend on, this should create a folder called "build". The clean task deletes this folder. These tasks work fine when run individually. However, when I try run the clean task and then a task which depends on init I see very strange behaviour:
On the first run of "phing clean deploy-local) (build folder not yet created) clean does nothing (this is correct, no folder to delete). The init target then runs and creates the folder and then the deploy target. All well and good up to this point. Then I run the exact same command again and clean this time removes the build folder, but now when init gets run (and it is run), mkdir outputs nothing and the build folder is not created and our build falls over.
I have attached a file (output.txt) showing the output of running the command twice.
My OS is Kubuntu Linux 6.06 64-bit AMD.