diff options
author | Matthew Woehlke <matthew.woehlke@kitware.com> | 2016-06-08 17:48:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-06-09 13:12:15 (GMT) |
commit | 0bd91ad4058c006bb67b48801e1877e8a893ef4d (patch) | |
tree | f7a9286c6ca43a3f37e59c3cc1669d3b24b65e03 /Tests/CMakeLists.txt | |
parent | 89df91b938f22e14f647244093b08d49ddb41385 (diff) | |
download | CMake-0bd91ad4058c006bb67b48801e1877e8a893ef4d.zip CMake-0bd91ad4058c006bb67b48801e1877e8a893ef4d.tar.gz CMake-0bd91ad4058c006bb67b48801e1877e8a893ef4d.tar.bz2 |
UseJava: Fix race condition creating java class list
Modify logic to unconditionally create an empty class list response file
to instead only create the empty file if no classes are being compiled.
Otherwise, the response file is created via a custom command that
generates the correct list.
This fixes a race condition on certain systems (e.g. HFS on OS X) where
the dependency for creating the "correct" list can have the "same" (due
to limited precision of the filesystem) timestamp as the empty file
created at configure time, resulting in an empty class list being
incorrectly used to invoke `jar` (resulting in `jar` being unhappy that
it was not given any input files). Although one would have some hope
that this doesn't affect "real" projects, it definitely does affect the
JavaExportImport unit test, causing the same to fail randomly when run
on an HFS partition.
Diffstat (limited to 'Tests/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions