MantisBT - CMake
View Issue Details
0013568CMakeCMakepublic2012-10-02 10:412016-06-10 14:31
mefoster 
Kitware Robot 
normalminoralways
closedmoved 
LinuxFedora17
CMake 2.8.9 
 
0013568: Source-file extension magic in UseJava.cmake doesn't work as intended
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.
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).
No tags attached.
Issue History
2012-10-02 10:41mefosterNew Issue
2016-06-10 14:28Kitware RobotNote Added: 0042128
2016-06-10 14:28Kitware RobotStatusnew => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0042128)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.