View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0013028 | CMake | Modules | public | 2012-03-08 06:47 | 2013-10-31 10:05 | ||||
Reporter | Nils Gladitz | ||||||||
Assigned To | Brad King | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | CMake 2.8.7 | ||||||||
Target Version | CMake 2.8.12 | Fixed in Version | CMake 2.8.12 | ||||||
Summary | 0013028: UseJava.cmake add_jar generated command line too long for nmake | ||||||||
Description | add_jar with a long list of java source files fails during the build when using the nmake generator at the custom command "Building Java objects for "[..]. The (truncated) nmake error is: NMAKE : fatal error U1095: expanded command line 'echo && "C:\Program Files\Java\jdk1.6.0_20\bin\javac.exe" [...]' too long Can this be worked around with argument files depending on the (type of) generator being used? | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | 0001-Use-argfile-for-java-files-to-compile.-13028.patch [^] (2,060 bytes) 2013-07-16 10:40 [Show Content] | ||||||||
Relationships | ||||||
|
Relationships |
Notes | |
(0028863) Nils Gladitz (developer) 2012-03-08 10:03 |
The workaround that works for me is creating a file with the source file names like this: set(_JAVA_SOURCE_FILELIST "${CMAKE_JAVA_CLASS_OUTPUT_PATH}/java_source_filelist_${_TARGET_NAME}") string(REPLACE ";" "\n" _NEWLINE_SEPARATED_SOURCE_FILES "${_JAVA_COMPILE_FILES}") file(WRITE ${_JAVA_SOURCE_FILELIST} "${_NEWLINE_SEPARATED_SOURCE_FILES}") And then replacing "${_JAVA_COMPILE_FILES}" with "@${_JAVA_SOURCE_FILELIST}" in the custom command. I'm not sure if this still works well with spaces in the source file paths though (my guess would be that it doesn't). |
(0030375) David Cole (manager) 2012-08-11 21:09 |
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. |
(0033556) Graham Markall (developer) 2013-07-16 10:44 |
I've recently bumped up against this bug and produced the attached patch to fix it locally. I've tested this on OS X 10.8, Windows 7, Debian Wheezy and CentOS 6.4. I tried to ensure that spaces in paths are dealt with by enclosing each file in quotes, and separating files with a newline, and this appears to work from my testing. Please let me know if there are any changes/additions to the patch necessary. |
(0033559) Brad King (manager) 2013-07-16 13:39 |
Re 0013028:0033556: Thanks, that looks good. Applied: http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=177c0516 [^] |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2012-03-08 06:47 | Nils Gladitz | New Issue | |
2012-03-08 10:03 | Nils Gladitz | Note Added: 0028863 | |
2012-08-11 21:09 | David Cole | Status | new => backlog |
2012-08-11 21:09 | David Cole | Note Added: 0030375 | |
2012-09-09 10:44 | Rolf Eike Beer | Relationship added | has duplicate 0013161 |
2013-07-16 10:40 | Graham Markall | File Added: 0001-Use-argfile-for-java-files-to-compile.-13028.patch | |
2013-07-16 10:44 | Graham Markall | Note Added: 0033556 | |
2013-07-16 13:39 | Brad King | Note Added: 0033559 | |
2013-07-16 13:39 | Brad King | Assigned To | => Brad King |
2013-07-16 13:39 | Brad King | Status | backlog => resolved |
2013-07-16 13:39 | Brad King | Resolution | open => fixed |
2013-07-16 13:39 | Brad King | Fixed in Version | => CMake 2.8.12 |
2013-07-16 13:39 | Brad King | Target Version | => CMake 2.8.12 |
2013-10-31 10:05 | Nils Gladitz | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |