[cmake-developers] [CMake 0013568]: Source-file extension magic in UseJava.cmake doesn't work as intended

Mantis Bug Tracker mantis at public.kitware.com
Tue Oct 2 10:41:42 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=13568 
====================================================================== 
Reported By:                mefoster
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13568
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-10-02 10:41 EDT
Last Modified:              2012-10-02 10:41 EDT
====================================================================== 
Summary:                    Source-file extension magic in UseJava.cmake doesn't
work as intended
Description: 
In UseJava.cmake, it appears that the intention is that if a jar/war/ear/sar
file is included in the argument to ADD_JAR, it should be appended to the
CLASSPATH:

        elseif (_JAVA_EXT MATCHES ".jar"
                OR _JAVA_EXT MATCHES ".war"
                OR _JAVA_EXT MATCHES ".ear"
                OR _JAVA_EXT MATCHES ".sar")
            list(APPEND CMAKE_JAVA_INCLUDE_PATH ${_JAVA_SOURCE_FILE})

However, this doesn't seem to be happening; the only way I can get jar files
into the CLASSPATH is by explicitly setting CMAKE_JAVA_INCLUDE_PATH myself
before the ADD_JAR command.

Additional Information: 
This is with cmake-2.8.9-1.fc18.x86_64 on Fedora 17 (I installed the F18
development version of cmake to get the latest Java macros).
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-10-02 10:41 mefoster       New Issue                                    
======================================================================




More information about the cmake-developers mailing list