File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant script src\src does not exist Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant script src\src does not exist" Watch "Ant script src\src does not exist" New topic

Ant script src\src does not exist

balaji gadamsetty

Joined: Oct 28, 2011
Posts: 1

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


when I compile I am getting below exception:

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


[Thumbnail for proj structure.jpg]

Peter Johnson

Joined: May 14, 2008
Posts: 5852

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.

JBoss In Action
I agree. Here's the link:
subject: Ant script src\src does not exist
It's not a secret anymore!