View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013568CMakeCMakepublic2012-10-02 10:412016-06-10 14:31
Reportermefoster 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformLinuxOSFedoraOS Version17
Product VersionCMake 2.8.9 
Target VersionFixed in Version 
Summary0013568: Source-file extension magic in UseJava.cmake doesn't work as intended
DescriptionIn 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 InformationThis 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).
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0042128)
Kitware Robot (administrator)
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.

 Issue History
Date Modified Username Field Change
2012-10-02 10:41 mefoster New Issue
2016-06-10 14:28 Kitware Robot Note Added: 0042128
2016-06-10 14:28 Kitware Robot Status new => resolved
2016-06-10 14:28 Kitware Robot Resolution open => moved
2016-06-10 14:28 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team