刷新用Ant Eclipse项目 [英] Refresh an Eclipse project with Ant

查看:181
本文介绍了刷新用Ant Eclipse项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有fosr建筑我们使用,不同的罐子在几个E​​clipse项目的一些Ant脚本。有一些相互依赖

We have some Ant script fosr building the different jars we use, in several Eclipse projects. There is some interdependency

在构建结束时,我们要刷新一些Eclipse项目,以使构建路径有效。没有这一点,它不会看到刚刚建成罐之一和Eclipse抛出构建路径错误。

At the end of the build, we have to refresh some of the Eclipse projects in order to make the build path valid. Without this, it doesn't see one of the just-built jars and Eclipse throws a build path error.

有是避免手动刷新步骤的方法吗?

There is a way to avoid the manual refresh step?

推荐答案

试试这个:

<eclipse.refreshLocal resource="project_name/folder_name" depth="infinite" />

有选项<一个href=\"http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/ant%5Feclipse%5Ftasks.htm\">details在Eclipse帮助系统。

There are option details at the Eclipse help system.

重要提示:你必须选择运行在相同的JRE为工作区,在蚂蚁的运行配置

Important: you have to choose "Run in the same JRE as workspace" at the Ant run configuration.

这篇关于刷新用Ant Eclipse项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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