以编程方式在Eclipse中创建插件项目

时间:2012-09-11 10:06:55

标签: eclipse plugins

我尝试使用eclipse向导创建“来自现有JAR Archives的插件”,并添加了一个外部JAR。当我尝试检查.classpath文件时,我有这个

<classpath>
     <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
    <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
    <classpathentry exported="true" kind="lib" path=""/>
    <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
    <classpathentry kind="output" path="bin"/>
</classpath>

eclipse如何知道我指向的JAR文件是什么? 并且可以以编程方式复制此过程吗?

1 个答案:

答案 0 :(得分:1)

有关所包含JAR的信息位于项目的MANIFEST.MF和build.properties文件中。

您可以使用java.util.jar.Manifest和java.util.Properties类编辑或创建这两个文件。

相关问题