如何转换旧的“plugin.xml"到新的“manifest.mf"文件?

2023-08-23Java开发问题
2

本文介绍了如何转换旧的“plugin.xml"到新的“manifest.mf"文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

如何将 plugin.xml 文件转换为 manifest.mf 文件作为一些标签:

How to convert plugin.xml file to manifest.mf file as some tags like:

<runtime>
    <library name="aaa.jar">
        <export name="*"/>
    </library>
<runtime>

似乎被忽略了.

这是下一个文档中的一些对应关系,但远非完整参考.

Here is some correspondence in the next document, but far from complete reference.

http://www.eclipse.org/eclipse/platform-core/runtime/adoption.html

推荐答案

在 plugin.xml 编辑器中打开文件.在Overview Tab>Plug-in Content部分应该有一个链接,..., create an OSGi manifest"

Open the file in the plugin.xml editor. On the Overview Tab>Plug-in Content section there should be a link, "..., create an OSGi manifest"

OSGi 清单是一组标头,用于描述包、作为依赖项的包或包以及此包导出的包.例如:

The OSGi manifest is a set of headers describing the bundle, the bundles or packages that are dependencies, and the packages this bundle exports. ex:

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Eclipse UI Tests
Bundle-SymbolicName: org.eclipse.ui.tests; singleton:=true
Bundle-Version: 3.6.0.qualifier
Bundle-ClassPath: uitests.jar
Bundle-Activator: org.eclipse.core.internal.compatibility.PluginActivator
Bundle-Vendor: Eclipse.org
Require-Bundle: org.eclipse.core.runtime.compatibility,
 org.eclipse.core.resources,
 org.eclipse.core.expressions,
 org.eclipse.ui,
 ...
Eclipse-AutoStart: true
Export-Package: org.eclipse.ui.tests.api,
 org.eclipse.ui.tests.helpers,
 org.eclipse.ui.tests.menus
Bundle-RequiredExecutionEnvironment: J2SE-1.4

这篇关于如何转换旧的“plugin.xml"到新的“manifest.mf"文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

在 Eclipse 项目中使用西里尔文 .properties 文件
Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)...
2024-08-25 Java开发问题
18

Objective-C 等价于 Java 在类方法中的匿名类
Objective-C equivalent to Java#39;s anonymous classes in class methods(Objective-C 等价于 Java 在类方法中的匿名类)...
2024-08-25 Java开发问题
17

Eclipse 在尝试启动 Android 应用程序时卡住了
Eclipse gets stuck when trying to launch Android app(Eclipse 在尝试启动 Android 应用程序时卡住了)...
2024-08-25 Java开发问题
14

Eclipse:无法初始化监视器线程:无法建立环回连接
Eclipse: Failed to initialize Monitor Thread: Unable to establish loopback connection(Eclipse:无法初始化监视器线程:无法建立环回连接)...
2024-08-25 Java开发问题
4

Eclipse-找不到JDK
Eclipse- JDK not found(Eclipse-找不到JDK)...
2024-08-25 Java开发问题
6

如何让 Eclipse 在 Windows 7 任务栏中表现良好?
How to make Eclipse behave well in the Windows 7 taskbar?(如何让 Eclipse 在 Windows 7 任务栏中表现良好?)...
2024-08-25 Java开发问题
9