问题
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