Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant build file error

 
Nesan Mano
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
JavaXMLBuild.jpg
[Thumbnail for JavaXMLBuild.jpg]
 
Diwakar Shenoy
Greenhorn
Posts: 4
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic