It's not a secret anymore!
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant build file error 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 build file error" Watch "Ant build file error" New topic

Ant build file error

Nesan Mano

Joined: Feb 18, 2013
Posts: 1
Hello, I am new to Antbuild in JAVA. I have a small FRACTAL Comanche to work with.

I imported the project to eclipse using Java Project from existing build file.
when right clicking build.xml >runAs> Ant build .

I get the following:

C:\Users\Nesan\workspace\comanche-adl\build.xml:64: srcdir "C:\Users\Nesan\workspace\comanche-adl\src" does not exist!

According to me the build file is in proper location.

You can get the project file from this URL:

choose comanche.rar

[Thumbnail for JavaXMLBuild.jpg]

Diwakar Shenoy

Joined: Feb 01, 2012
Posts: 4


I just had a quick look into the screenshot you provided and It appears that build script is looking for an "src" folder to compile the soure files. From the screenshot src looks like a softlink you have setup to point to the location of your source folder. You can do the following:

1. Right click on the project in your eclipse and go to Properties --> Java Build Path --> Source tab and identity the location where the src link is pointing to (actual physical folder where the source files are present)
2. Update your build.xml with this location.

so, if you have <property name="src" value="src"/> change this to <property name="src" value="PHYSICAL LOCATION OF SOURCE FILES"/>

and it should solve this problem.

I agree. Here's the link:
subject: Ant build file error
jQuery in Action, 3rd edition