变量引用不存在的资源 Build.xml [英] Variable references non-existent resource Build.xml
问题描述
我正在使用 Eclipse Kepler 并且我正在尝试执行我的构建脚本.
I am using Eclipse Kepler and I am trying to execute my build script.
当我运行任务时,我收到一个 Ant 错误,内容为
When I run a task, I get an Ant error that says
变量引用不存在的资源:${workspace_loc:/MyProject_JAVA/dev-new/build.xml}.
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.
/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.
如何更改 Ant 认为构建文件的位置?
How do I change where Ant thinks the build file is?
推荐答案
我遇到了同样的问题,幸好我解决了.进入 Eclipse 的首选项,然后编辑 Ant - Runtime - Classpath.你会找到原因,并删除错误配置的条目.
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屋!