Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 42720 invoked from network); 2 May 2003 00:16:21 -0000 Received: from message.teja.com (209.10.202.115) by daedalus.apache.org with SMTP; 2 May 2003 00:16:21 -0000 Received: from teja.com (marge.teja.com [209.10.202.117]) by message.teja.com (8.12.8/8.12.8) with ESMTP id h420HLqu008929 for ; Thu, 1 May 2003 17:17:22 -0700 Message-ID: <3EB1B8D7.2050707@teja.com> Date: Thu, 01 May 2003 17:16:23 -0700 From: Nisha Pillai User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: -J option task question References: <7A57F750AF65D411949C00508BDFD8181AF3DD69@USPLM202> <3EAF10C2.9070800@teja.com> <3EAFFFA5.3010905@teja.com> In-Reply-To: <3EAFFFA5.3010905@teja.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Since I haven't heard anything further, let me rephrase the question. Is there anything I need to do (outside of the invocation of the task, for example) in order to ensure that fork works in the javac task? - Nisha. Nisha Pillai wrote: > Stefan Bodewig wrote: > >> On Tue, 29 Apr 2003, Nisha Pillai wrote: >> >> >> >>> Thanks for your input. This worked. >>> >> >> >> Strange, as it shouldn't work. If setting ANT_OPTS solves your issue, >> then you are not forking javac. The maxmemory attribute will only >> apply if you set fork to true. >> >> If you don't fork, javac will run in the same Java VM instance that is >> running Ant and your only option is to increase the memory size for >> this VM - which in turn can only be done before Ant has been started >> (via ANT_OPTS or ~/.antrc). >> >> Stefan >> >> > Stefan, > I understand that maxmemory will only work with fork. Per the > snippet I included in my original post, I am setting fork=yes in my > javac task. And before someone says to try fork=true, I've tried that > as well. Anyways, here is the javac part from my buildfile again. > > > > memoryMaximumSize="128m"> > > > > > > > > Realized when I saw ANT_OPTS working that fork wasn't working, but I'm > not sure why. Anyone? > And no, I'm not setting the build.compiler property. > - Nisha.