【问题标题】:preference extension package to jar偏好扩展包到 jar
【发布时间】:2014-03-18 00:27:33
【问题描述】:

http://www.eclipse.org/articles/article.php?file=Article-Preferences/article.html有人看到这篇论文了吗?我执行了这个例子,它作为eclipse应用程序成功运行,但是当我将它打包到jar并将jar包推送到eclipse的插件目录时,eclipse没有效果,谢谢你的anwser

【问题讨论】:

  • 如何打包成Jar?
  • 在eclipse中没有效果,就像不加这个jar包一样。但是当它作为eclipse应用程序运行时,在eclipse平台有效果
  • 必须使用Export > Deployable plug-ins and fragments创建插件jar
  • 我这样做并得到了相同的结果
  • 向我们展示您的build.properties的内容

标签: eclipse plugins jar preference


【解决方案1】:

您的build.properties 中似乎没有plugin.xml(可能还有其他东西)。插件的标准build.properties 或多或少是:

source.. = src/
output.. = bin/
bin.includes = META-INF/,\
           .,\
           OSGI-INF/,\
           plugin.xml

OSGI-INF 如果没有该文件夹,可以省略。

【讨论】:

  • source.. = src/ output.. = bin/ bin.includes = plugin.xml,\ META-INF/,\ .,\ icons/ 这是我另一个中 build.properties 的内容插件项目,但是这个文件不是自动生成的吗?
  • source.badwordchecker.jar = BADWORDCHECKER Plugin bin.includes = plugin.xml,\ META-INF/,\ .,\ 我把它改成了这个,我做到了~~~非常感谢!
猜你喜欢
  • 2011-12-21
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2022-11-20
  • 1970-01-01
  • 1970-01-01
  • 2021-11-08
相关资源
最近更新 更多