Meaningless Drivel is fun!*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant build file error" Watch "Ant build file error" New topic
Author

Ant build file error

Nesan Mano
Greenhorn

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:
http://www.ptidej.net/course/log4430/winter12/resources/plfng_view

choose comanche.rar


[Thumbnail for JavaXMLBuild.jpg]

Diwakar Shenoy
Greenhorn

Joined: Feb 01, 2012
Posts: 4

Nesan,

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.

Thanks,
Diwakar
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ant build file error