PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3225 *** shadow/3225 Wed Aug 22 04:40:37 2001 --- shadow/3225.tmp.13528 Wed Aug 22 04:40:37 2001 *************** *** 0 **** --- 1,36 ---- + +============================================================================+ + | javac task with fork="yes": breaks with OutOfMemoryError | + +----------------------------------------------------------------------------+ + | Bug #: 3225 Product: Ant | + | Status: NEW Version: 1.4Beta2 | + | Resolution: Platform: PC | + | Severity: Normal OS/Version: Windows NT/2K | + | Priority: Other Component: Core tasks | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + I am running the javac in several places in the following form: + <javac extdirs="resources\lib\shared" + fork="yes" + classpath=" " + srcdir="${basedir}/sources/java" + destdir="${basedir}/classes" + includes="${shared.root}/*.java" /> + The javac is run in a separate process correctly; however, it breaks when + reaching about 71 Megs of RAM used (in its own process). The number of files to + compile is 1134. + Note that the parameters passed to the JVM running Ant are set to -ms128m and - + mx256m, but clearly are not passed to the process call. + + I assumes that we either need to automatically pass the original parameters to + the external javac process, or let the user define them in the task. + + This is not simply an enhancement for me, as I need to fork javac in order to + get rid of the jzentry problem. + + Thanks.