[cmake-developers] [CMake 0013028]: UseJava.cmake add_jar generated command line too long for nmake

Mantis Bug Tracker mantis at public.kitware.com
Thu Mar 8 06:47:38 EST 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13028 
====================================================================== 
Reported By:                ngladitz
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13028
Category:                   Modules
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-03-08 06:47 EST
Last Modified:              2012-03-08 06:47 EST
====================================================================== 
Summary:                    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?
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-03-08 06:47 ngladitz       New Issue                                    
======================================================================




More information about the cmake-developers mailing list