I have been using Ant with Eclipse and Netbeans. The same directory structure(with directories as src, build, config etc.) and same build file . The o/p directory specified is build. After compiling the code in Eclipse, I have observed that Eclipse creates a NEW directory structure matching the directory structure of the directory in which build.xml resides under the target directory. There is a high possibility that I am doing something wrong here, but when I delete the directory structure created, and compile the same code using same build.xml in NetBeans it works as expected. Has anybody come across this ? What am I missing ?