变量引用不存在资源Build.xml [英] Variable references non-existent resource Build.xml
问题描述
当我运行一个任务时,我收到一个Ant错误,表示
变量引用不存在资源:
$ {workspace_loc:/MyProject_JAVA/dev-new/build.xml}。
问题是这个路径是错误的。它应该是:
/MyProject_JAVA/dev/dev-new/build.xml。
我可以进入外部工具并更改这一个构建的配置,但如果我再次尝试运行任务,我会收到相同的错误。
如何更改Ant认为构建文件的位置?
我遇到同样的问题,幸运的是我解决了
转到Eclipse的首选项,并编辑Ant - Runtime - Classpath。
您会发现原因,并删除错误配置的条目。
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?
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.
这篇关于变量引用不存在资源Build.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!