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

查看:1607
本文介绍了变量引用不存在的资源在build.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Eclipse开普勒,我试图执行我的构建脚本。

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.

如何修改我在那里蚂蚁认为构建文件是什么?

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

推荐答案

我遇到了同样的问题,幸好我解决它。
去到Eclipse的preferences,并编辑蚂蚁 - 运行 - 类路径。
你会发现原因,并删除错误配置项。

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天全站免登陆