View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013355CMakeModulespublic2012-06-27 14:172016-06-10 14:31
ReporterMarcin Wojdyr 
Assigned ToAndreas Schneider. 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSLinuxOS Version
Product VersionCMake 2.8.8 
Target VersionFixed in Version 
Summary0013355: UseJava ignores resources without extensions
DescriptionResource files that have no filename extension are ignored.
Steps To ReproduceWith this CMakeLists.txt:

cmake_minimum_required(VERSION 2.8.6)
find_package(Java)
include(UseJava)
project(foo Java)
add_jar(foo foo.java res1.txt res2)

file 'res2' will be ignored and not included in jar.
Additional InformationAny workaround would be welcome.
TagsNo tags attached.
Attached Filespatch file icon 0001-Tests-Java-test-boundling-resources-in-JAR.patch [^] (1,903 bytes) 2012-08-18 11:34 [Show Content]

 Relationships

  Notes
(0030449)
David Cole (manager)
2012-08-11 21:42

Sending old, never assigned issues to the backlog.

(The age of the bug, plus the fact that it's never been assigned to anyone means that nobody is actively working on it...)

If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it: http://www.cmake.org/mailman/listinfo/cmake [^]

It's easy to re-activate a bug here if you can find a CMake developer who has the bandwidth to take it on, and ferry a fix through to our 'next' branch for dashboard testing.
(0030695)
Marcin Wojdyr (reporter)
2012-08-18 11:35

I've added a patch to Tests/Java that shows this problems and also 0013360
(0030697)
Marcin Wojdyr (reporter)
2012-08-18 15:17

the cause is in UseJava.cmake:289:

elseif (_JAVA_EXT STREQUAL "")
            list(APPEND CMAKE_JAVA_INCLUDE_PATH ${JAVA_JAR_TARGET_${_JAVA_SOURCE_FILE}} ${JAVA_JAR_TARGET_${_JAVA_SOURCE_FILE}_CLASSPATH})
            list(APPEND _JAVA_DEPENDS ${JAVA_JAR_TARGET_${_JAVA_SOURCE_FILE}})

I don't know what it does, JAVA_JAR_TARGET_* is not set anywhere.
Can this block be deleted?
(0042072)
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-06-27 14:17 Marcin Wojdyr New Issue
2012-08-11 21:42 David Cole Status new => backlog
2012-08-11 21:42 David Cole Note Added: 0030449
2012-08-18 11:34 Marcin Wojdyr File Added: 0001-Tests-Java-test-boundling-resources-in-JAR.patch
2012-08-18 11:35 Marcin Wojdyr Note Added: 0030695
2012-08-18 15:17 Marcin Wojdyr Note Added: 0030697
2012-08-20 03:51 Andreas Schneider. Assigned To => Andreas Schneider.
2012-08-20 03:51 Andreas Schneider. Status backlog => assigned
2016-06-10 14:28 Kitware Robot Note Added: 0042072
2016-06-10 14:28 Kitware Robot Status assigned => resolved
2016-06-10 14:28 Kitware Robot Resolution open => moved
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team