How to override explicitly defined Java source files for Javadoc using additional options files?

纵然是瞬间 提交于 2020-03-03 13:59:49

问题


I have some tool creating an options file for Javadoc containing lots of individual Java source files to process. That tool simply adds all Java files automatically and allows me to add additional options files to the process created manually. The goal is to use such an additional options file to make Javadoc ignore some of the explicitly defined source files.

The first automatically generated options file looks like the following:

-classpath '[...]'
-d '[...]'
-doctitle '[...]'
'C:\\Users\\[...]\\package-info.java'
'C:\\Users\\[...]\\[...].java'
[...]

It contains a lot more paths for each individual Java-file in my project of course. The tools then invokes Javadoc the following way, where all but the first options file is the one I have control over:

javadoc @optsFile1 @optsFile2 @optsFile3

So, is it possible at all to somehow override the explicit paths of the first file using some options in the later files only?

I already tried various combinations of -exclude and -subpackages, but none of them worked. Javadoc always seems to process the explicitly defined files of the first and as well outputs their HTML. I don't care about unnecessary processing those files as well, I only don't want all of their HTML in the output folder. Would be great to have some option to post-filter things based on package names, because I would like to avoid to deal with paths.

Thanks!

来源:https://stackoverflow.com/questions/60464503/how-to-override-explicitly-defined-java-source-files-for-javadoc-using-additiona

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!