The New Project with Existing Ant Script wizard imports an existing Java, web, or EJB module into a .
In the Name and Location page, you have to set the following properties:
MyApp src lib build build.xmlyou should set MyApp as the location, even though it does not directly contain the Ant script.