How to add files to the Eclipse RCP application root directory (application type plugins)?

拈花ヽ惹草 提交于 2019-12-02 22:09:53

问题


I saw on official documentation, and some posts that's possible to add files to the root of an Eclipse RCP application : http://help.eclipse.org/kepler/index.jsp?topic=/org.eclipse.pde.doc.user/tasks/pde_rootfiles.htm and How to add files to the root of an Eclipse RCP app?

unfortunately, i can't make it works! I would like to distribute a file "launcher.bat" which has to be in the root of the application. Some information : - I use eclipse RCP 4 (with eclipse version = kepler). - My project configuration is based on plugins

Any help?

Thanks in advance

Clément


回答1:


You must use a feature based build for this.

The 'build.properties' file for the feature contains the root file directives. For Example

bin.includes = feature.xml
root=file:launcher.bat

The 'launcher.bat' file to be included would be in root folder of the feature.



来源:https://stackoverflow.com/questions/28835247/how-to-add-files-to-the-eclipse-rcp-application-root-directory-application-type

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!