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

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

问题描述

在几个Eclipse项目中,我们有一些Ant脚本fosr构建我们使用的不同的jar。有一些相互依赖关系



在构建结束时,我们必须刷新一些Eclipse项目,以使构建路径有效。没有这个,它看不到刚刚建立的jar和Eclipse抛出一个构建路径错误。



有一种方法来避免手动刷新步骤? / p>

解决方案

尝试这样:

 < eclipse.refreshLocal resource =project_name / folder_namedepth =infinite/> 

有选项详细信息



重要:您必须在Ant运行配置中选择以与工作空间相同的JRE运行。


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

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?

解决方案

Try this:

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

There are option details at the Eclipse help system.

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

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

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