通过命令行刷新eclipse项目

Phi*_*ayo 8 eclipse command-line batch-file

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

(相当于在包视图中右键单击>刷新)
我需要在maven nightly build之后从批处理中刷新eclipse.

And*_*fer 2

我知道有 ant 任务可以做到这一点:

<eclipse.convertPath fileSystemPath="/workspace/org.example.project"
                     property="resourcePath"/>
<eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/>
Run Code Online (Sandbox Code Playgroud)

至于从命令行运行它,最坏的情况是,您可以将其粘贴在 ant 脚本中,调用 eclipse antrunner 应用程序:

eclipse -nosplash -application org.eclipse.ant.core.antRunner -f刷新.xml

  • 我收到错误: BUILD FAILED C:\...\refresh.xml:2: Unexpected element "{}eclipse.convertPath" {antlib:org.apache.tools.ant}eclipse.convertPath (6认同)