变量引用不存在资源Build.xml [英] Variable references non-existent resource Build.xml

查看:417
本文介绍了变量引用不存在资源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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆