Refresh eclipse projects via command line

2019-06-17 04:08发布

How to refresh eclipse projects via command line?

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

1条回答
2楼-- · 2019-06-17 05:04

I know there are ant tasks to do this:

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

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:

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

查看更多
登录 后发表回答