View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0012055 | CMake | CMake | public | 2011-04-07 12:02 | 2016-06-10 14:31 | ||||
Reporter | Oliver Buchtala | ||||||||
Assigned To | Andreas Schneider. | ||||||||
Priority | normal | Severity | feature | Reproducibility | N/A | ||||
Status | closed | Resolution | moved | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0012055: Java: support source file lists for java compilation | ||||||||
Description | Javac 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 Information | Attached a git unified-diff created on 'Modules/UseJava.cmake' in 1df325da44520a4db2ddc6d2586b83d33d7ec807 of git://cmake.org/stage/cmake.git [^] | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | UseJava_support_source_file_lists.patch [^] (2,571 bytes) 2011-04-07 12:02 [Show Content] | ||||||||
Relationships | |
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. |
Notes |
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 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |