java导出sources.jar,如何从包含source的许多插件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.

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.

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.

Cheers

解决方案

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

In Eclipse -> Open a new workspace (so as not to flood your working area)

Under Preferences, select Plug-in Development/Target Platform. Create new Target Platform with all of the plugins included and set as current.

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.

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.

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值