[cmake-developers] [CMake 0013161]: Java support can violate the command-line string limitation

Mantis Bug Tracker mantis at public.kitware.com
Mon Apr 23 13:28:10 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13161 
====================================================================== 
Reported By:                Frank Glinka
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13161
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-04-23 13:28 EDT
Last Modified:              2012-04-23 13:28 EDT
====================================================================== 
Summary:                    Java support can violate the command-line string
limitation
Description: 
Currently, the add_jar function composes a single command-line expression which
invokes javac and passes all java files as command-line arguments.

As soon as the number of Java files gets bigger and/or the files are placed in
folders with long path names, the system limit for command-line expressions is
easily reached.

Steps to Reproduce: 
Create a medium-sized java project with long path names to the Java files.

Additional Information: 
The Java compiler allows to provide a file as a program argument which lists the
source files to be compiled. This might be the better choice:

http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javac.html
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-04-23 13:28 Frank Glinka   New Issue                                    
======================================================================




More information about the cmake-developers mailing list