不包括Doxygen的目录

我想Doxygen忽略,绕过,而不是search我的项目的以下目录:

*/.svn/* */docs/* */Properties/* */bin/* 

根据Doxygen常见问题 :

 How can I exclude all test directories from my directory tree? Simply put an exclude pattern like this in the configuration file: EXCLUDE_PATTERNS = */test/* 

所以,我的Doxygen文件看起来像这样:

 # If the value of the INPUT tag contains directories, you can use the # EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude # certain files from those directories. Note that the wildcards are matched # against the file with absolute path, so to exclude all test directories # for example use the pattern */test/* EXCLUDE_PATTERNS = */.svn/* \ */docs/* \ */published/* \ */bin/* \ */obj/* 

Doxygen的输出是:

 Searching for include files... Searching for example files... Searching for images... Searching for files in directory c:/Test_Fixtures/pc_application/docs Searching for files in directory c:/Test_Fixtures/pc_application/docs/.svn Searching for files in directory c:/Test_Fixtures/pc_application/docs/.svn/prop-base Searching for files in directory c:/Test_Fixtures/pc_application/docs/.svn/props Searching for files in directory c:/Test_Fixtures/pc_application/docs/.svn/text-base Searching for files in directory c:/Test_Fixtures/pc_application/docs/.svn/tmp Searching for files in directory c:/Test_Fixtures/pc_application/docs/.svn/tmp/prop-base Searching for files in directory c:/Test_Fixtures/pc_application/docs/.svn/tmp/props Searching for files in directory c:/Test_Fixtures/pc_application/docs/.svn/tmp/text-base Searching for files in directory c:/Test_Fixtures/pc_application/docs/html Searching for files in directory c:/Test_Fixtures/pc_application/docs/html/.svn Searching for files in directory c:/Test_Fixtures/pc_application/docs/html/.svn/prop-base Searching for files in directory c:/Test_Fixtures/pc_application/docs/html/.svn/props Searching for files in directory c:/Test_Fixtures/pc_application/docs/html/.svn/text-base Searching for files in directory c:/Test_Fixtures/pc_application/docs/html/.svn/tmp Searching for files in directory c:/Test_Fixtures/pc_application/docs/html/.svn/tmp/prop-base Searching for files in directory c:/Test_Fixtures/pc_application/docs/html/.svn/tmp/props Searching for files in directory c:/Test_Fixtures/pc_application/docs/html/.svn/tmp/text-base Searching for files in directory c:/Test_Fixtures/pc_application/docs/html/search Searching for files in directory c:/Test_Fixtures/pc_application/docs/html/search/.svn Searching for files in directory c:/Test_Fixtures/pc_application/docs/html/search/.svn/prop-base Searching for files in directory c:/Test_Fixtures/pc_application/docs/html/search/.svn/props Searching for files in directory c:/Test_Fixtures/pc_application/docs/html/search/.svn/text-base Searching for files in directory c:/Test_Fixtures/pc_application/docs/html/search/.svn/tmp Searching for files in directory c:/Test_Fixtures/pc_application/docs/html/search/.svn/tmp/prop-base Searching for files in directory c:/Test_Fixtures/pc_application/docs/html/search/.svn/tmp/props Searching for files in directory c:/Test_Fixtures/pc_application/docs/html/search/.svn/tmp/text-base Searching for files in directory c:/Test_Fixtures/pc_application/docs/rtf Searching for files in directory c:/Test_Fixtures/pc_application/docs/rtf/.svn Searching for files in directory c:/Test_Fixtures/pc_application/docs/rtf/.svn/prop-base Searching for files in directory c:/Test_Fixtures/pc_application/docs/rtf/.svn/props Searching for files in directory c:/Test_Fixtures/pc_application/docs/rtf/.svn/text-base Searching for files in directory c:/Test_Fixtures/pc_application/docs/rtf/.svn/tmp Searching for files in directory c:/Test_Fixtures/pc_application/docs/rtf/.svn/tmp/prop-base Searching for files in directory c:/Test_Fixtures/pc_application/docs/rtf/.svn/tmp/props Searching for files in directory c:/Test_Fixtures/pc_application/docs/rtf/.svn/tmp/text-base 

这清楚地表明EXCLUDE_PATTERNS不起作用。 我也有EXCLUDE选项设置为:

 # The EXCLUDE tag can be used to specify files and/or directories that should # excluded from the INPUT source files. This way you can easily exclude a # subdirectory from a directory tree whose root is specified with the INPUT tag. EXCLUDE = ../.svn \ ../docs \ ../published \ ../docs/.svn \ ../docs/.svn 

哪一个也不行

所以,100000美元的问题是:我如何使Doxygen排除,绕过,忽略,保持清除指定的目录或文件夹(最好是有效的)?

我在64位CPU平台上使用Windows 7上的Doxygen Wizard,以及Doxygen 1.7.3。

请注意,通配符与绝对path的文件匹配

所以,只需使用绝对path来排除您的排除;)

PS:顺便说一句,我已经挣扎了很多次。 关于doxyfile的评论这个小提到似乎太经常被忽视。

哎呀,我错过了你已经试过的细节。 也许这是一个多行值的问题:尝试内联所有的path,只使用空格作为分隔符。 这个(加上绝对模式)在我最近使用doxygen的less数几个系统上就足够了。


我已经做了一些更深入的testing,并且还看了一下doxyfile的文档。 正确的语法是使用空间分隔。 如果你真的想多线,支持和logging的语法是:

 EXCLUDE_PATTERNS = */.svn/* EXCLUDE_PATTERNS += */docs/* EXCLUDE_PATTERNS += */published/* # and so on 

另外,仔细看一下排除模式是如何工作的:包括目录本身,然后将根据排除模式和(因为它总是匹配)来testing其中的所有内容, 排除在每个文件的基础上

所以仔细看看你的输出: Searching for files in directorySearching for files in directory应该在那里(doxygen将search目录,但找不到任何东西,因为一切都被排除在外)。 你得到Parsing code for fileGenerating docs for的任何内容在这些目录? 如果你没有得到这些,这意味着一切工作正常(目录被搜查,但没有包括在内)。 如果确实包含了这些文件,请尝试使用空格分隔符或+=语法。 我没有看到任何文档,甚至暗示你的\语法可以工作(当然,我可能忽略了一些东西)。

请注意,当我使用doxygen时,可以看到类似的现象。 但是,当该工具search示例文件和图像时会发生这种情况:

 Searching for example files... Searching for files in directory .../wpkg/mainline/documentation Searching for files in directory .../wpkg/mainline/documentation/.svn Searching for files in directory .../wpkg/mainline/documentation/.svn/prop-base [...] Searching for images... Searching for files in directory .../wpkg/mainline/documentation Searching for files in directory .../wpkg/mainline/documentation/.svn Searching for files in directory .../wpkg/mainline/documentation/.svn/prop-base [...] 

正如您有EXCLUDE_PATTERNS设置忽略.svn子目录。 我想这是doxygen中的一个错误,在扫描示例和图像时应该检查这些排除。

此外,它看起来可能是它打印在屏幕上的所有目录,但正确地忽略它们,如前使用它检查排除模式。 但这只是一个猜测。 虽然看起来有人说这是它在这里工作的方式:

http://doxygen.10944.n7.nabble.com/EXCLUDE-DIRECTORY-PATTERN-td2185.html