MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0013360 | CMake | Modules | public | 2012-06-28 07:16 | 2014-10-06 10:32 |
| Reporter | Marcin Wojdyr | ||||
| Assigned To | |||||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | OS | Linux | OS Version | ||
| Product Version | CMake 2.8.8 | ||||
| Target Version | CMake 3.1 | Fixed in Version | CMake 3.1 | ||
| Summary | 0013360: Java add_jar() doesn't copy resources to build directory when make is run for the first time | ||||
| Description | With 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) the first time I run "make" it fails with message: res1.txt : no such file or directory but when I run make again it works: [ 25%] Copying res1.txt to the build directory [100%] Built target foo | ||||
| Steps To Reproduce | |||||
| Additional Information | Full session: $ cmake . CMake Warning at /usr/share/cmake/Modules/FindJava.cmake:120 (message): regex not supported: java version "1.7.0_03-icedtea" OpenJDK Runtime Environment (fedora-2.2.1.fc17.8-x86_64) OpenJDK 64-Bit Server VM (build 23.0-b21, mixed mode). Please report Call Stack (most recent call first): CMakeLists.txt:2 (find_package) -- Found Java: /bin/java (found version "..") -- Configuring done -- Generating done -- Build files have been written to: /run/mw/test/sub $ make Scanning dependencies of target foo [ 25%] Building Java objects for foo.jar [ 50%] Generating CMakeFiles/foo.dir/java_class_filelist [ 75%] Creating Java archive foo.jar res1.txt : no such file or directory make[2]: *** [foo.jar] Error 1 make[1]: *** [CMakeFiles/foo.dir/all] Error 2 make: *** [all] Error 2 $ make [ 25%] Copying res1.txt to the build directory [100%] Built target foo | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2012-06-28 07:16 | Marcin Wojdyr | New Issue | |||
| 2012-08-11 21:42 | David Cole | Status | new => backlog | ||
| 2012-08-11 21:42 | David Cole | Note Added: 0030450 | |||
| 2012-10-02 10:46 | mefoster | Note Added: 0031151 | |||
| 2012-10-02 11:04 | mefoster | Note Added: 0031152 | |||
| 2014-03-20 09:54 | Brad King | Note Added: 0035454 | |||
| 2014-03-20 09:54 | Brad King | Status | backlog => resolved | ||
| 2014-03-20 09:54 | Brad King | Resolution | open => fixed | ||
| 2014-03-20 09:54 | Brad King | Fixed in Version | => CMake 3.1 | ||
| 2014-03-20 09:54 | Brad King | Target Version | => CMake 3.1 | ||
| 2014-10-06 10:32 | Robert Maynard | Note Added: 0036949 | |||
| 2014-10-06 10:32 | Robert Maynard | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||