如何从包含source的许多插件jar文件生成javadoc [英] How to generate javadoc from many plugin jar files containing source

查看:230
本文介绍了如何从包含source的许多插件jar文件生成javadoc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一组超过500个jar文件,用于我们从第三方获得的各种插件,并且对于每个这些jar文件,还有一个源jar文件。但是他们还没有提供javadoc。

I have a set of over 500 jar files for a whole range of plugins that we have from a third party, and for each of these jar files there is a source jar file as well. But they have not provided the javadoc.

我希望能够从提供的源jar文件构建javadocs,但无法判断javadoc.exe是否可以这对我来说。我已经多年没有手动使用它了,所以不熟悉命令行选项。

I want to be able to build the javadocs from the provided source jar files, but can't tell if javadoc.exe will do this for me. I haven't used it manually for years, so not familiar with the command line options.

这里的一个人向我展示了如何将源文件导入Eclipse所以我可以浏览Source。但这样做超过500次是非常耗时的。

One of the guys here showed me how to import the source file into Eclipse so I could browse the Source. but doing that over 500 times is a very time consuming exercise.

干杯

推荐答案

因为所有源文件和插件jar都在同一个目录中,我找到了一个相对简单的解决方案,使用eclipse。

Because all the source file and plugins jars are together in the same directory I have found a relatively simple solution, using eclipse.


  1. 在Eclipse中 - >打开一个新工作区(以免泛滥工作区域)

  2. 在首选项下,选择插件开发/目标平台。创建包含所有插件并设置为当前插件的新目标平台。

  3. 在Plug-in浏览器视图中,选择所有插件,右键单击,选择Import As - > Source Project。此时,所有源文件都将加载到工作区中。

  4. 在包资源管理器中。选择Project - > Generate javadocs。 不幸在此对话框中,没有全选选项 - 所以如果你有500个插件,那么你必须逐个选择它们。

  1. In Eclipse -> Open a new workspace (so as not to flood your working area)
  2. Under Preferences, select Plug-in Development/Target Platform. Create new Target Platform with all of the plugins included and set as current.
  3. In the Plug-in browser view, select all plugins, right click, select Import As -> Source Project. At this point all the source files are loaded into the workspace.
  4. In the package explorer. Select Project -> Generate javadocs. Unfortunately in this dialog, there is no select all option - so if you have 500 plugins, then you have to select them one-by-one.

如果完成而没有崩溃,那么所有人都是胜利者。

And if that finishes without crashing, then all is winner.

注意:我第一次尝试使用32位eclipse和javadoc失败,我认为由于插件/文件的数量,但我使用了64位Eclipse和Javadoc,花了大约一个小时,但确实有效。

NOTE: My first attempt using 32-bit eclipse and javadoc failed, I think due to the number of plugins/files, but I then used a 64-bit Eclipse and Javadoc, which took about an hour, but did work.

这篇关于如何从包含source的许多插件jar文件生成javadoc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆