View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012055CMakeCMakepublic2011-04-07 12:022016-06-10 14:31
ReporterOliver Buchtala 
Assigned ToAndreas Schneider. 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0012055: Java: support source file lists for java compilation
DescriptionJavac allows to specify source files by using a list file containing paths to multiple java source files.
E.g. javac @my_list_file.txt

This way, one could deal with dynamically generated source files which are not known at configure time (swig output in my case).

Find an attached patch as an initial suggestion and basis for discussion.

In the suggested solution one can add a '@<path-to-file>' to the _JAVA_SOURCE_FILES argument handed to the add_jar function. Source files with leading '@' are detected and treated adequately.
Additional InformationAttached a git unified-diff created on 'Modules/UseJava.cmake' in 1df325da44520a4db2ddc6d2586b83d33d7ec807 of git://cmake.org/stage/cmake.git [^]

TagsNo tags attached.
Attached Filespatch file icon UseJava_support_source_file_lists.patch [^] (2,571 bytes) 2011-04-07 12:02 [Show Content]

 Relationships

  Notes
(0027252)
Andreas Schneider. (developer)
2011-08-20 06:28

Hi,

thanks for your patch. The first check should be:

if (_JAVA_SOURCE_FILE MATCHES "^@")
    string(REGEX REPLACE "^@" "" _JAVA_SOURCE_FILE "${_JAVA_SOURCE_FILE}")
    set(_JAVA_IS_SOURCE_LIST_FILE TRUE)
else()
    set(_JAVA_IS_SOURCE_LIST_FILE FALSE)
endif()

Please test the TODO. Or write a test for it. We need to make sure this works.
(0041829)
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
2011-04-07 12:02 Oliver Buchtala New Issue
2011-04-07 12:02 Oliver Buchtala File Added: UseJava_support_source_file_lists.patch
2011-04-07 13:22 Brad King Assigned To => Andreas Schneider.
2011-04-07 13:22 Brad King Status new => assigned
2011-08-20 06:28 Andreas Schneider. Note Added: 0027252
2016-06-10 14:28 Kitware Robot Note Added: 0041829
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