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

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

问题描述

我们有一些 Ant 脚本用于构建我们在几个 Eclipse 项目中使用的不同 jar.有一定的依存关系

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

在构建结束时,我们必须刷新一些 Eclipse 项目以使构建路径有效.没有这个,它就看不到刚刚构建的 jars 之一,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" />

有选项 详细信息.

重要:您必须在 Ant 运行配置中选择在与工作区相同的 JRE 中运行".

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

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

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