自动从Eclipse[复制]的插件文件夹中创建Jar

时间:2022-09-11 19:43:56

This question already has an answer here:

这个问题已经有了答案:

I have a plugin source folder which contains some plugin clases and META-INF folder with some manifests. In another source folder I have my main application. What I would like to do is to create a JAR file out of my plugin folder and add it to the classpath as soon as I click on the run button for my main application class. Preferably, Eclipse should create JAR files on the fly as soon as I make a change to any of the files within the plugin folder, kind of the way it automatically creates .class files in the default output folder (${projectname}/bin)

我有一个插件源文件夹,其中包含一些插件的clases和META-INF文件夹,其中有一些清单。在另一个源文件夹中,我有我的主要应用程序。我想做的是,从我的插件文件夹中创建一个JAR文件,然后在我点击主应用程序类的run按钮时,将它添加到类路径中。最好是,Eclipse应该在我对插件文件夹中的任何文件进行更改后立即创建JAR文件,这是在默认输出文件夹(${projectname}/bin)中自动创建.class文件的方式。

I only need this to make testing easier. Can it be done in Eclipse without the need to rely on ANT or something similar?

我只需要它让测试更简单。它可以在Eclipse中完成,而不需要依赖ANT或类似的东西吗?

1 个解决方案

#1


1  

Like this?:

像这样的吗?

How Do I Automatically Generate A .jar File In An Eclipse Java Project

如何在Eclipse Java项目中自动生成.jar文件?

#1


1  

Like this?:

像这样的吗?

How Do I Automatically Generate A .jar File In An Eclipse Java Project

如何在Eclipse Java项目中自动生成.jar文件?