After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 567774 - EXTENSION_MAPPING for Java not working
EXTENSION_MAPPING for Java not working
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.5.8
Other Windows
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
: 626033 629197 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-01-14 18:18 UTC by allan
Modified: 2010-10-09 08:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
sample project illustrating the problem (10.44 KB, application/x-compressed-tar)
2009-01-14 18:24 UTC, allan
Details
sample project illustrating the problem (10.44 KB, application/x-compressed-tar)
2009-01-14 18:27 UTC, allan
Details

Description allan 2009-01-14 18:18:41 UTC
I am trying to map .ejb files to Java and cannot get this to work. Here is a simple Doxyfile which shows the problem

OUTPUT_DIRECTORY       = doxygen_doc
GENERATE_LATEX         = NO
INPUT                  = src
RECURSIVE              = YES
EXTENSION_MAPPING      = ejb=Java
FILE_PATTERNS          = *.java *.ejb
OPTIMIZE_OUTPUT_JAVA   = YES
EXTRACT_ALL            = YES

Any *.ejb files seem to still be treated as C++ . I noticed that the extension mapping does seem to work for other languages, for example if I put
EXTENSION_MAPPING      = ejb=Fortran
then the output changes. I have also tried "java" and "JAVA" as I was unclear what should be specified from the documentation.

Thanks,

Allan
Comment 1 allan 2009-01-14 18:24:29 UTC
Created attachment 126439 [details]
sample project illustrating the problem

Test project used to validate the problem. TestA.java and TestB.java are identical except for the class name.
Comment 2 allan 2009-01-14 18:27:49 UTC
Created attachment 126440 [details]
sample project illustrating the problem

Test project used to validate the problem. TestA.java and TestB.java are identical except for the class name.
Comment 3 allan 2009-01-15 12:01:02 UTC
Looking into it a bit more, there seems to be something a bit odd going on here. After having a look at doxygen.cpp and util.cpp, I tried putting

EXTENSION_MAPPING      = .ejb=Java

and it seems to work ok. This is a bit surprising as if I put Fortran rather than Java, it seems fine with or without the '.' . It might be worth updating the docs at http://www.stack.nl/~dimitri/doxygen/config.html#cfg_extension_mapping and the generated Doxyfile to include a '.' in the examples.
Comment 4 Miroslav Bajtoš 2009-03-26 07:46:43 UTC
We are experiencing the same problem. Some of our C++ header files have the extension ".inc", which is assigned for PHP files by default. 

The configuration
 EXTENSION_MAPPING = inc=C++
doesn't work, despite the fact that doxygen reports that inc files will be parsed as C++.

I have changed the config to
 EXTENSION_MAPPING = .inc=C++
and now it works correctly.

P.S. We are using the version 1.5.8 on Windows platform. I can run the tests on other platforms (Linux, Solaris) if it helps...
Comment 5 Dimitri van Heesch 2010-08-19 19:09:55 UTC
Confirmed, the dot should not be needed.
Should be fixed in the next subversion update.
Comment 6 Dimitri van Heesch 2010-08-19 19:10:41 UTC
*** Bug 626033 has been marked as a duplicate of this bug. ***
Comment 7 Dimitri van Heesch 2010-09-11 20:38:14 UTC
*** Bug 629197 has been marked as a duplicate of this bug. ***
Comment 8 Dimitri van Heesch 2010-10-09 08:19:56 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.7.2. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information
that you think can be relevant.