This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 17303 - argument list too long for external compiler
Summary: argument list too long for external compiler
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-05 20:06 UTC by Tuyen Tran
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tuyen Tran 2001-11-05 20:06:25 UTC
"Compile All" is breaking with 

Error: UNIXProcess: execAndFork: argument list too long. 

Compiler type was "external compiler"

Mounted source tree has about 800 files. Error goes away when file count is cut 
down to ~700 files. Also shows up in 3.2.1 so this may be a problem with JDK 
1.3.1 under OS X.
Comment 1 Svata Dedic 2001-11-07 12:56:25 UTC
The IDE tries to pass all filenames on the commandline, assuming that
the OS will handle long commandlines properly. It's not entirely true
(obviously). 
I will limit the max cummulative length of filenames passed on the
commandline. If the actual length of filenames exceeds this, a
commandfile will be used instead. 
The treshold of filename lengths will be customizable through system
property 
 org.openide.compilers.filelistTreshold 
Comment 2 Svata Dedic 2001-11-07 18:18:14 UTC
Fixed in trunk,

/cvs/openide/src/org/openide/compiler/ExternalCompilerGroup.java,v 
<--  ExternalCompilerGroup.java
new revision: 1.40; previous revision: 1.39
Comment 3 Jan Becicka 2001-11-23 15:08:56 UTC
Verified. Feel free to reopen this bug, if you are not took up with 
it.
Comment 4 Quality Engineering 2003-07-01 13:18:59 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.