you should download the latest ant 1.5 beta. Do it tomorrow and you will get beta-3. As well as having the <condition> task, it has more helpful error messages, in this case mentioning 'you are using an older version of ant' as one of the possibilities
----- Original Message ----- BUILD FAILED C:\xml-axis\java\build.xml:170: Could not create task of type: condition. Common solutions are to use taskdef to declare your task, or, if this is an optional task, to put the optional.jar in the lib directory of your ant installation (ANT_HOME).