Thread: [Doxygen-users] INPUT_FILTER - unable to get it to work?
Brought to you by:
dimitri
|
From: Paul H. <Pa...@a-...> - 2003-08-19 08:15:46
|
(Apologies if this gets received twice, I first sent it last Friday, but have yet to see it appear on the list) Doxygen 1.3.3 Windows XP Professional SP1 I'm trying to use Doxygen to document some code we have here, but the code is in some proprietary language. However since it's similar to Visual Basic, I thought I'd start with Mathias Henze's awk script on the downloads page[1] and then hack it to work with the language I'm messing with. Sadly I can't seem to get the configuration right and was wondering if anyone could point me in the right direction. I have Doxygen's configuration file at C:\Citect\M2091\dbase\doxygen.cfg, and the (I believe) pertinent sections are: #--------------------------------------------------------------------------- # General configuration options #--------------------------------------------------------------------------- PROJECT_NAME = Batching PROJECT_NUMBER = v0.1 OUTPUT_DIRECTORY = ./Documentation OUTPUT_LANGUAGE = English USE_WINDOWS_ENCODING = YES # rest omitted for brevity #--------------------------------------------------------------------------- # configuration options related to warning and progress messages #--------------------------------------------------------------------------- QUIET = NO WARNINGS = YES WARN_IF_UNDOCUMENTED = YES WARN_IF_DOC_ERROR = YES WARN_FORMAT = "$file:$line: $text" WARN_LOGFILE = #--------------------------------------------------------------------------- # configuration options related to the input files #--------------------------------------------------------------------------- INPUT = FILE_PATTERNS = *.ci RECURSIVE = NO EXCLUDE = EXCLUDE_SYMLINKS = NO EXCLUDE_PATTERNS = EXAMPLE_PATH = EXAMPLE_PATTERNS = EXAMPLE_RECURSIVE = NO IMAGE_PATH = INPUT_FILTER = C:/Citect/Bin/cifilter.bat C:\Citect\Bin FILTER_SOURCE_FILES = NO # Rest of configuration omitted for brevity C:\Citect\Bin\cifilter.bat contains (only) the following @echo off cd %1% set teeCommand=./tee -a '%2%.doxylog' set awkCommand=./gawk.exe -f cifilter.awk '%2%' set fullCommand="%awkCommand% | %teeCommand%" echo CiFilter: %fullcommand% sh.exe -c %fullCommand% rem sh.exe -c "./gawk.exe -f cifilter.awk '"%2%"'" cifilter.awk is located in C:\Citect\Bin (as are tee and gawk) And from the command line, I get the following output from Doxygen: C:\Citect\M2091\dbase>doxygen doxygen.cfg Searching for include files... Searching for example files... Searching for images... Searching for dot files... Searching for files to exclude Reading input files... Reading and parsing tag files Preprocessing C:/Citect/M2091/dbase/batchedit.ci... The filename, directory name, or volume label syntax is incorrect. Preprocessing C:/Citect/M2091/dbase/batchprint.ci... The filename, directory name, or volume label syntax is incorrect. Preprocessing C:/Citect/M2091/dbase/batchqueue.ci... The filename, directory name, or volume label syntax is incorrect. Preprocessing C:/Citect/M2091/dbase/batchterminate.ci... The filename, directory name, or volume label syntax is incorrect. Preprocessing C:/Citect/M2091/dbase/ProjectSpecificBatching.ci... The filename, directory name, or volume label syntax is incorrect. Preprocessing C:/Citect/M2091/dbase/sql.ci... The filename, directory name, or volume label syntax is incorrect. Preprocessing C:/Citect/M2091/dbase/temp.ci... The filename, directory name, or volume label syntax is incorrect. Preprocessing C:/Citect/M2091/dbase/testing.ci... The filename, directory name, or volume label syntax is incorrect. Read 313 bytes Parsing input... Parsing file C:/Citect/M2091/dbase/batchedit.ci... Parsing file C:/Citect/M2091/dbase/batchprint.ci... Parsing file C:/Citect/M2091/dbase/batchqueue.ci... Parsing file C:/Citect/M2091/dbase/batchterminate.ci... Parsing file C:/Citect/M2091/dbase/ProjectSpecificBatching.ci... Parsing file C:/Citect/M2091/dbase/sql.ci... Parsing file C:/Citect/M2091/dbase/temp.ci... Parsing file C:/Citect/M2091/dbase/testing.ci... Freeing input... [rest of output snipped] However, if I run the INPUT_FILTER from the command line (supplying a filename of course,) the output is what I'd expect it to be (largely empty since I've not touched the script yet): C:\Citect\Bin>C:/Citect/Bin/cifilter.bat C:\Citect\Bin C:\Citect\M2091\dbase\sql.ci CiFilter: "./gawk.exe -f cifilter.awk 'C:\Citect\M2091\dbase\sql.ci' | ./tee -a 'C:\Citect\M2091\dbase\sql.ci.doxylog'" }; C:\Citect\Bin> Changing FILE_PATTERNS to *.frm and dumping a VB .frm file in the directory gives the same results. Can anyone tell me what I'm doing wrong? -- PJH [1] http://www.stack.nl/~dimitri/doxygen/download.html#helpers |
|
From: Pavel F. Z. <za...@ma...> - 2003-08-19 10:41:30
|
Your Doxygen's configuration file should contain the following lines: INPUT_FILTER = "C:/Citect/Bin/cifilter.bat C:\Citect\Bin" FILTER_SOURCE_FILES = YES I'm not sure that command line arguments for the filter will work on Windows platform. Regards, Pavel Paul Herring wrote: > (Apologies if this gets received twice, I first sent it last Friday, but > have yet to see it appear on the list) > > Doxygen 1.3.3 > Windows XP Professional SP1 > > I'm trying to use Doxygen to document some code we have here, but the code > is in some proprietary language. However since it's similar to Visual Basic, > I thought I'd start with Mathias Henze's awk script on the downloads page[1] > and then hack it to work with the language I'm messing with. > > Sadly I can't seem to get the configuration right and was wondering if > anyone could point me in the right direction. > > I have Doxygen's configuration file at C:\Citect\M2091\dbase\doxygen.cfg, > and the (I believe) pertinent sections are: > #--------------------------------------------------------------------------- > # General configuration options > #--------------------------------------------------------------------------- > PROJECT_NAME = Batching > PROJECT_NUMBER = v0.1 > OUTPUT_DIRECTORY = ./Documentation > OUTPUT_LANGUAGE = English > USE_WINDOWS_ENCODING = YES > # rest omitted for brevity > #--------------------------------------------------------------------------- > # configuration options related to warning and progress messages > #--------------------------------------------------------------------------- > QUIET = NO > WARNINGS = YES > WARN_IF_UNDOCUMENTED = YES > WARN_IF_DOC_ERROR = YES > WARN_FORMAT = "$file:$line: $text" > WARN_LOGFILE = > #--------------------------------------------------------------------------- > # configuration options related to the input files > #--------------------------------------------------------------------------- > INPUT = > FILE_PATTERNS = *.ci > RECURSIVE = NO > EXCLUDE = > EXCLUDE_SYMLINKS = NO > EXCLUDE_PATTERNS = > EXAMPLE_PATH = > EXAMPLE_PATTERNS = > EXAMPLE_RECURSIVE = NO > IMAGE_PATH = > INPUT_FILTER = C:/Citect/Bin/cifilter.bat C:\Citect\Bin > FILTER_SOURCE_FILES = NO > # Rest of configuration omitted for brevity > > C:\Citect\Bin\cifilter.bat contains (only) the following > @echo off > cd %1% > set teeCommand=./tee -a '%2%.doxylog' > set awkCommand=./gawk.exe -f cifilter.awk '%2%' > set fullCommand="%awkCommand% | %teeCommand%" > echo CiFilter: %fullcommand% > sh.exe -c %fullCommand% > rem sh.exe -c "./gawk.exe -f cifilter.awk '"%2%"'" > > cifilter.awk is located in C:\Citect\Bin (as are tee and gawk) > > And from the command line, I get the following output from Doxygen: > > C:\Citect\M2091\dbase>doxygen doxygen.cfg > Searching for include files... > Searching for example files... > Searching for images... > Searching for dot files... > Searching for files to exclude > Reading input files... > Reading and parsing tag files > Preprocessing C:/Citect/M2091/dbase/batchedit.ci... > The filename, directory name, or volume label syntax is incorrect. > Preprocessing C:/Citect/M2091/dbase/batchprint.ci... > The filename, directory name, or volume label syntax is incorrect. > Preprocessing C:/Citect/M2091/dbase/batchqueue.ci... > The filename, directory name, or volume label syntax is incorrect. > Preprocessing C:/Citect/M2091/dbase/batchterminate.ci... > The filename, directory name, or volume label syntax is incorrect. > Preprocessing C:/Citect/M2091/dbase/ProjectSpecificBatching.ci... > The filename, directory name, or volume label syntax is incorrect. > Preprocessing C:/Citect/M2091/dbase/sql.ci... > The filename, directory name, or volume label syntax is incorrect. > Preprocessing C:/Citect/M2091/dbase/temp.ci... > The filename, directory name, or volume label syntax is incorrect. > Preprocessing C:/Citect/M2091/dbase/testing.ci... > The filename, directory name, or volume label syntax is incorrect. > Read 313 bytes Parsing input... > Parsing file C:/Citect/M2091/dbase/batchedit.ci... > Parsing file C:/Citect/M2091/dbase/batchprint.ci... > Parsing file C:/Citect/M2091/dbase/batchqueue.ci... > Parsing file C:/Citect/M2091/dbase/batchterminate.ci... > Parsing file C:/Citect/M2091/dbase/ProjectSpecificBatching.ci... > Parsing file C:/Citect/M2091/dbase/sql.ci... > Parsing file C:/Citect/M2091/dbase/temp.ci... > Parsing file C:/Citect/M2091/dbase/testing.ci... > Freeing input... > [rest of output snipped] > > However, if I run the INPUT_FILTER from the command line (supplying a > filename of course,) the output is what I'd expect it to be (largely empty > since I've not touched the script yet): > > C:\Citect\Bin>C:/Citect/Bin/cifilter.bat C:\Citect\Bin > C:\Citect\M2091\dbase\sql.ci > CiFilter: "./gawk.exe -f cifilter.awk 'C:\Citect\M2091\dbase\sql.ci' | ./tee > -a 'C:\Citect\M2091\dbase\sql.ci.doxylog'" > }; > > C:\Citect\Bin> > > Changing FILE_PATTERNS to *.frm and dumping a VB .frm file in the directory > gives the same results. > > Can anyone tell me what I'm doing wrong? > > -- > PJH > > [1] http://www.stack.nl/~dimitri/doxygen/download.html#helpers > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > Doxygen-users mailing list > Dox...@li... > https://lists.sourceforge.net/lists/listinfo/doxygen-users |