+ -
当前位置:首页 → 问答吧 → RCP项目打包的问题

RCP项目打包的问题

时间:2011-10-19

来源:互联网

配置文件在项目中的位置 Simulator/src/file/mapping.xml

打包后的程序运行时生成了一个bundles,配置文件出现在

E:\Simulator\Simulator\configuration\org.eclipse.osgi\bundles\4\1\.cp\src\file\mapping.xml (问题: 改配置文件的话很不好找)

下,E:\Simulator是打包程序存放的路径,Simulator是项目名
读取文件URL的方法:

Activator.getDefault().getBundle().getEntry("src/file/mapping.xml");

想要结果:
因为是配置文件,所以希望程序打包后,配置文件所在的文件夹能放在项目根目录下,如: E:\Simulator\Simulator\file\mapping.xml

求高手解答,在线等..

作者: shuaiyz   发布时间: 2011-10-19

自己顶,莫沉了

作者: shuaiyz   发布时间: 2011-10-19