File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
Author

Ant script src\src does not exist

balaji gadamsetty
Greenhorn

Joined: Oct 28, 2011
Posts: 1
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










[Thumbnail for proj structure.jpg]

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5772
    
    7

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
 
Consider Paul's rocket mass heater.
 
subject: Ant script src\src does not exist
 
Similar Threads
How to write ANT script to build an ear file for Struts and Ejb program
Regarding Ant issue.
[Ant] how to create a jar (not runnable) with other dependencies?
Ant building error
Question on Ant script error in my build.xml file in the Eclipse IDE