刷新通过命令行Eclipse项目 [英] Refresh eclipse projects via command line

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

问题描述

如何通过命令行刷新Eclipse项目?

How to refresh eclipse projects via command line?

(的等效的右键 - >刷新的封装视图)

我需要一个Maven每晚构建后从批刷新蚀。

(an equivalent of right-click > refresh in package view)
I need to refresh eclipse from a batch after a maven nightly build.

推荐答案

我知道有Ant任务要做到这一点:

I know there are ant tasks to do this:

<eclipse.convertPath fileSystemPath="/workspace/org.example.project"
                     property="resourcePath"/>
<eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/>

至于从命令行运行此,作为一个最坏的情况下,你可以在Ant脚本坚持这个调用日食antrunner应用程序:

As for running this from the command line, as a worst case, you can stick this in an ant script invoke the eclipse antrunner application:

日食-nosplash - 应用org.eclipse.ant.core.antRunner -f
  refresh.xml

eclipse -nosplash -application org.eclipse.ant.core.antRunner -f refresh.xml

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

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