Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant script src\src does not exist

 
balaji gadamsetty
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am just beginner learning Ant script by going through forums and books.
I am stuck at initial point itself so I am looking for some help from this huge forum

I attached a file, which is about my project structure and build.xml is copied below

build.xml
-----------


when I compile I am getting below exception:


Why is it looking for src inside src folder? please help me. Thanks in Adavce

-Balaji








proj structure.jpg
[Thumbnail for proj structure.jpg]
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
balaji, welcome to Java Ranch!

The build.xml file is in the wrong location. It should be in the base directory of the project, not in the src directory.

The error that you are getting says that it expected to find a src subdirectory under the directory that contains build.xml. And since build.xml is at AntWebProject/src, then it expects to find AntWebProject/src/src. In general, all relative paths specified in build.xml are relative to the directory containing build.xml, regardless of the directory from which you issued the ant command.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic