Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Variable references non-existent resource Build.xml

Tags:

java

eclipse

ant

I am using Eclipse Kepler and I am trying to execute my build script.

When I run a task, I get an Ant error that says

Variable references non-existent resource : ${workspace_loc:/MyProject_JAVA/dev-new/build.xml}.

The problem is this path is wrong. It should be :

/MyProject_JAVA/dev/dev-new/build.xml.

I can go into External Tools and change the config for this one build, but if I try to run the task again, I get the same error.

How do I change where Ant thinks the build file is?

like image 694
BladeHal Avatar asked Oct 03 '13 13:10

BladeHal


2 Answers

I met same problem , fortunately I solved it. Go into preferences of Eclipse, and edit Ant - Runtime - Classpath. You will find reason, and delete the error configured entry.


Error Pic


Solve Pic

like image 150
billni Avatar answered Sep 18 '22 23:09

billni


I think your closing curly brace is misplaced and I'm not sure the colon is necessary. Try: ${workspace_loc}/MyProject_JAVA/dev-new/build.xml

EDIT: I'm assuming you are using this in your Ant Build external configuration's "Main" tab, in the "Base Directory" field.

EDIT 2: Actually, as I look at your description closer, it appears the MyProject_JAVA folder exists outside of the workspace. Is that correct? If so, try using ${project_loc} instead.

like image 21
Jamie Bisotti Avatar answered Sep 19 '22 23:09

Jamie Bisotti